I need an array function that will take a string and then split the string into the array elements by a specified separator. The function would return the filled array.
I can write the function, my problem is declaring the function and using the function. I thought it could be written as:
function ParseData(dataLine: String; sep: String): Array of String;
then the use of the array would be:
parsedArray := ParseData(dataLine, sep);
I get all sorts of errors when trying the above. Can someone show me how to utilize arrays as parameters and results?
Thanks in advance,