Difference between revisions of "String keyword"
m (moved String to String (dascript type)) |
(→Persistence) |
||
Line 16: | Line 16: | ||
The following functions allow a string to exist outside of the scope of the current script by storing it on an object, effect or event: | The following functions allow a string to exist outside of the scope of the current script by storing it on an object, effect or event: | ||
− | * [[ | + | * [[SetLocalString]] |
− | * [[ | + | * [[SetEffectString]] |
− | * [[ | + | * [[SetEventString]] |
The following functions allow a string which exist outside of the scope of the current script to be used in the current script by retrieving it from an object, effect or event: | The following functions allow a string which exist outside of the scope of the current script to be used in the current script by retrieving it from an object, effect or event: | ||
− | * [[ | + | * [[GetLocalString]] |
* [[GetEffectString]] | * [[GetEffectString]] | ||
− | * [[ | + | * [[GetEventString]] |
− | + | ||
== Special == | == Special == | ||
Revision as of 04:59, 1 August 2009
The string type represents a sequence of between zero and approximately two billion characters. The default value a string containing zero characters.
Literals
A literal is a textual representation of a particular value of a type.
A string literal consists of zero or more characters enclosed in double quotes.
Conversion
There is no explicit or implicit conversion to or from a location.
Persistence
The following functions allow a string to exist outside of the scope of the current script by storing it on an object, effect or event:
The following functions allow a string which exist outside of the scope of the current script to be used in the current script by retrieving it from an object, effect or event:
Special
Concatenation
Two or more strings can be concatenated together using the concatenation operator "+".
Escape sequences
Escape sequences are used to insert special characters into a string literal. An escape sequence begins with a backslash character "\" followed by another string literal character.
Sequence | Description |
---|---|
\\ | The "\" character |
\n | A new line (a carriage return and line feed) |