Difference between revisions of "StrNew"
Crash note
imported>Tibixe (correction) |
imported>Speedo (Crash note) |
||
Line 10: | Line 10: | ||
StrNew attaches the calling script's identifier to the new string. | StrNew attaches the calling script's identifier to the new string. | ||
==Note== | |||
Due to a bug with [[Set]], you can't directly create large strings with StrNew, as the CS will crash when you attempt to compile the script. To get around this, simply use StrNew to create an empty string and immediately follow it with [[StrSet]]: | |||
set myString to StrNew | |||
StrSet myString "Very, very, very, long string [...]" | |||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: TSFC]] | [[Category: TSFC]] |