如何将字符串的某个部分存储到变量中?
例如:
x = myString // - But store the 9th character into a variable
如何将字符串的某个部分存储到变量中?
例如:
x = myString // - But store the 9th character into a variable
这从字符串中获取单个字符:
var x = string_char_at("This is my string", 4); //X == "s"
您可以使用string_copy函数来复制字符串的一部分;
var x = string_copy("This is my string", 8, 2); //X == "my"
尝试这个,
x = string_char_at(myString , 9);