L lelelor Active Member Licensed User Mar 9, 2021 #1 I have to recover from a .txt file 3 fields divided by "," if I point on the variable it gives me the three fields but I can't get them divided. Attachments input file.png 10.6 KB · Views: 164
I have to recover from a .txt file 3 fields divided by "," if I point on the variable it gives me the three fields but I can't get them divided.
mcqueccu Well-Known Member Licensed User Longtime User Mar 9, 2021 #2 You can use CSV parser https://www.b4x.com/android/forum/threads/b4x-csvparser-csv-parser-and-generator.110901/ or Use Regex.split B4X: Dim s As String = $"8000864047250,BICHIERI CRIST,2.9"$ Dim sSplit() As String = Regex.Split(",",s) Log(sSplit(0)) Upvote 0
You can use CSV parser https://www.b4x.com/android/forum/threads/b4x-csvparser-csv-parser-and-generator.110901/ or Use Regex.split B4X: Dim s As String = $"8000864047250,BICHIERI CRIST,2.9"$ Dim sSplit() As String = Regex.Split(",",s) Log(sSplit(0))