Difference between revisions of "StrSet"
Jump to navigation
Jump to search
imported>Talkie Toaster (New page: '''Syntax:''' StrSet ''StringRef:long'' "String" '''Example''' StrSet ''sentence'' "Sentence will be set to this" Sets the contents of the passed StringRef to the passed string. StrSet ...) |
imported>Tibixe (rewrite) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
''' | '''Function:''' | ||
StrSet '' | StrSet ''stringToSet:stringID'' ''format:string'' [var1, var2, var3...] | ||
'''Example''' | '''Example''' | ||
StrSet ''sentence'' " | StrSet ''sentence'' "The variable sentence will be set to this" | ||
Sets the contents of the passed | Sets the contents of the passed stringID to the passed string. StrSet will overwrite any existing contents of the string. | ||
StrSet can be used to embed numbers in strings, like the [[Message]], [[MessageBox]] and [[PrintToConsole]] functions. The only difference is that you have to use the '$' character instead of '%'. | |||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: TSFC]] | [[Category: TSFC]] |
Latest revision as of 11:40, 10 August 2007
Function:
StrSet stringToSet:stringID format:string [var1, var2, var3...]
Example
StrSet sentence "The variable sentence will be set to this"
Sets the contents of the passed stringID to the passed string. StrSet will overwrite any existing contents of the string.
StrSet can be used to embed numbers in strings, like the Message, MessageBox and PrintToConsole functions. The only difference is that you have to use the '$' character instead of '%'.