Split (CurrentString As String, Split_At_Delimiter As String) As List
Returns a LIST of items from the string split at the Delimiter.
EXAMPLE:
Dim ANS As List
ANS = SF.Split("This is a test string.", " ")
B4X:
Dim strSource As String = "-1.4985018,52.4053273,1983688820,node"
Dim strDivisor = ","
result.Initialize
result = sf.Split(strSource, strDivisor)
Log (result)
(ArrayList) [-1.4985018, 52.4053273, 1983688820, node]
'in global process
Dim su As StringUtils
'in activity create
Dim HoopsLibrary As List
HoopsLibrary = su.LoadCSV(File.DirAssets, "hoopslibrary.txt", ",")
log(HoopsLibrary)
It would be easier for us to help if you posted your project as a zip file.
Otherwise we need to make a new project and make the csv file etc. which is consuming our time!
With your project we can test exactly in the same conditions as you do.
It may well be that you're parsing the file incorrectly, try the code above and debug it - the log will show you if the lines are being processed as you expect.
It would be easier for us to help if you posted your project as a zip file.
Otherwise we need to make a new project and make the csv file etc. which is consuming our time!
With your project we can test exactly in the same conditions as you do.
I will, I need to extract it from a larger project and will zip it and send it over if I don't find solution. I am not at the computer with the license at the moment. Will try to make sure the file is correct as well. It's created in the stock ms notepad.
It may well be that you're parsing the file incorrectly, try the code above and debug it - the log will show you if the lines are being processed as you expect.