string s[30]; str_cpy(s,"Hello"); // now s == "Hello " str_cat(s,"World"); // now s == "Hello World"Variable length strings will never be truncated:
string tstring1; // define a unlimited length string
function stringtest()
{
var i = 10;
str_cpy(tstring1,"12345");
while (i > 0)
{
str_cat(tstring1,"abcd"); // increase the length of the string
i -= 1;
}
}
See also:
str_cpy, str_cmp, str_cmpi, str_cmpni, str_len, str_clip, str_trunc, str_stri