Difference between revisions of "StrNew"
Jump to navigation
Jump to search
imported>Talkie Toaster |
imported>Tibixe (complete rewrite) |
||
Line 1: | Line 1: | ||
'''Function:''' | |||
''newString:stringID'' StrNew ''[initialValue:string]'' | |||
'''Syntax:''' | '''Syntax:''' | ||
set ''StringRef:long'' to StrNew | set ''StringRef:long'' to StrNew "Hello World!" | ||
Registers a new string, and returns it's reference number as a ''long''. This number is used when performing functions on the string -- the long itself does not contain the string, merely points to it. | |||
If initialValue (a string as recognized by the CS, not a stringID) is given, it will be copied to the resulting string. | |||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: TSFC]] | [[Category: TSFC]] |
Revision as of 11:17, 10 August 2007
Function:
newString:stringID StrNew [initialValue:string]
Syntax:
set StringRef:long to StrNew "Hello World!"
Registers a new string, and returns it's reference number as a long. This number is used when performing functions on the string -- the long itself does not contain the string, merely points to it.
If initialValue (a string as recognized by the CS, not a stringID) is given, it will be copied to the resulting string.