Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sat Nov 18, 2017 5:20 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: String Array function
PostPosted: Thu Feb 03, 2011 11:09 am 
Offline

Joined: Mon Mar 19, 2007 8:56 am
Posts: 21
I continue to get errors when using the String Array functions ...

Error Global Section line 107: Undefined reference Unable to find function named "_getstrcount"
Error Global Section line 109: Undefined reference Unable to find function named "_redimstrarray"
Error Global Section line 110: Undefined reference Unable to find function named "_setstring"

Here is the code which is trying to use the functions ...

dim Session_Names as string
dim Name_Index[] as integer
dim Session_Dates[] as integer

func Save_Session(d as integer, n as string)
dim size as integer
dim new_size as integer

size = _GetStrCount(Name_Index)
new_size = size+1
_RedimStrArray(new_size, Session_Names, Name_Index)
_SetString(size, n, Session_Names, Name_Index)
Session_Dates[size] := d
endfunc



Any ideas?
Thanks,
- Nate


Top
 Profile  
 
PostPosted: Thu Feb 03, 2011 11:13 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
If you pull up the help on any of those functions, you will see a line in the help that says:

Location: Library standard source stringarray

That line is an indication that you need to manually reference those functions for them to work. Just add

Code:
Library standard source stringarray


somewhere in your global code section and it should fix your errors

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Thu Feb 03, 2011 11:18 am 
Offline

Joined: Mon Mar 19, 2007 8:56 am
Posts: 21
Fantastic. Thanks Jeremy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group