User Tools

Site Tools


guide:help:scsbasicindexes

Indexes

Documentation | Help File | Scripter Studio | Basic Language | Indexes

Strings, arrays and array properties can be indexed using “[” and “]” chars. For example, if Str is a string variable, the expression Str[2] returns the third character in the string denoted by Str, while Str[i + 1] returns the character immediately after the one indexed by i.  Examples:

MyChar = MyStr[2]
MyStr[1] = "A"
MyArray[1,2] = 1530
Lines.Strings[2] = "Some text"
2018/05/24 13:37

Page Tools