I have a string with set of employee IDs separated by an _(Underscore). What i want to do is to split that into separate strings and convert them to integers and save them
split is the correct function. i think it will probably be easiest to keep them as strings and then convert when you need to use them (otherwise you will simply have to loop through the string array and populate a new number array).
what trouble are you having with split? and what do you then intend to do with your array?
//create an array of strings by parsing a underscore-delimited string field
Stringvar Array strings := Split({table.string_field}, "_");
//empty numeric array; sized to match
Numbervar Array numbers;
Redim numbers[Ubound(strings)];
//populate array
Numbervar i;
for i := 1 to Ubound(strings) do (
numbers[i] := ToNumber(strings[i])
);
//return
numbers;