I'm using the breakapart method and want to assign the substrings to string variables - like
var
ar Array[] String; must be resizable
s, Firstvar, Lastvar string
tc TCursor
endVar
{scan code, etc}
s.breakApart(ar)
Firstvar = ar[1]
Lastvar = ar[2]
Unable to assign substring to Firstvar and Lastvar; get error "the specified array index is out of bounds. The index is 1, and the array limit is 0." How do I assign these variables values? Thank you.
var
ar Array[] String; must be resizable
s, Firstvar, Lastvar string
tc TCursor
endVar
{scan code, etc}
s.breakApart(ar)
Firstvar = ar[1]
Lastvar = ar[2]
Unable to assign substring to Firstvar and Lastvar; get error "the specified array index is out of bounds. The index is 1, and the array limit is 0." How do I assign these variables values? Thank you.