What is the best way to code a function (in B4A) that returns a variable size array of string ?
Using Regex.Split as an example :
A number of strings are created and they are returned as x().
I would think List is used to store the strings and then converted to an array before returning ?
Or Is x() continuously being re-dimensioned during processing ?
Or The strings are stored a file and then read-back into an array ?
Using Regex.Split as an example :
B4X:
Sub Split(delimit as string, s as string) as string()
...
return x()
End Sub
A number of strings are created and they are returned as x().
I would think List is used to store the strings and then converted to an array before returning ?
Or Is x() continuously being re-dimensioned during processing ?
Or The strings are stored a file and then read-back into an array ?