I have a column with text that I would like to separate:
A~B~C~D~E
A~B~C~~E
I am interested in the text in B,C and E.
Sometimes, the text in position 4 will be Null.
stringvar myString := CStr({EpisodeTestComments.Text});
StringVar Array MyArray := Split(myString,"~");
StringVar MyA := MyArray[1] ;
StringVar MyB := MyArray[2] ;
StringVar MyC := MyArray[3];
StringVar MyD := MyArray[4];
StringVar MyE := MyArray[5];
MyB;
I get an error saying: "A subscript must be between 1 and the size of the array"