String: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
You can make a string out of any type by using [[format]].
You can make a string out of any type by using [[format]].


'''Compatibility notes:'''


'''Arma''' and '''Elite'''
'''Compatibility Notes:'''


Since ArmA/Elite, strings can also be alternatively enclosed in apostrophes, like 'Hello'.
'''Armed Assault''' and '''Elite'''


Before ArmA, strings could be enclosed in curled braces, as there was no difference between strings and code. In ArmA code needs to be distinguished clearly strings can no longer use { } syntax.
Since Armed Assault/Elite, strings can also be alternatively enclosed in apostrophes, like 'Hello'.


Note: config strings use very similar syntax, but using quotes is optional.
Before ArmA, strings could be enclosed in curled braces, as there was no difference between strings and code.
 
In ArmA code needs to be distinguished clearly, strings can no longer use { } syntax.
 
Note: Config strings use very similar syntax, but using quotes is optional.


[[Category: Types]]
[[Category: Types]]

Revision as of 11:24, 30 June 2006

Description: ASCII string, e.g. "My name is Victor Troska"

Strings are written enclosed in double quotes, like "Hello".

You can make a string out of any type by using format.


Compatibility Notes:

Armed Assault and Elite

Since Armed Assault/Elite, strings can also be alternatively enclosed in apostrophes, like 'Hello'.

Before ArmA, strings could be enclosed in curled braces, as there was no difference between strings and code.

In ArmA code needs to be distinguished clearly, strings can no longer use { } syntax.

Note: Config strings use very similar syntax, but using quotes is optional.