HowardTheDuck Member Licensed User Oct 4, 2019 #1 I'm looking at the jStringUtils LoadCSV documentation and it says it returns a list of string arrays. How do I access an element in one of the returned arrays? For the list "Table": Table.Get(0)(0) was my first of many incorrect guesses, but that generates an error.
I'm looking at the jStringUtils LoadCSV documentation and it says it returns a list of string arrays. How do I access an element in one of the returned arrays? For the list "Table": Table.Get(0)(0) was my first of many incorrect guesses, but that generates an error.
EnriqueGonzalez Well-Known Member Licensed User Longtime User Oct 4, 2019 #2 Like this: B4X: Dim l as list = su.loadcsv.... Dim arr() as string = l.get(0) ' unique item Log(Arr(0)) For each arr() as string in l 'looping For each str as string in arr Log(str) Next Next Upvote 0
Like this: B4X: Dim l as list = su.loadcsv.... Dim arr() as string = l.get(0) ' unique item Log(Arr(0)) For each arr() as string in l 'looping For each str as string in arr Log(str) Next Next
EnriqueGonzalez Well-Known Member Licensed User Longtime User Oct 4, 2019 #3 Also HowardTheDuck said: Table.Get(0)(0) Click to expand... this is almost valid But .get returns an object. For the IDE it is impossible to know what kind of object is returning Upvote 0
Also HowardTheDuck said: Table.Get(0)(0) Click to expand... this is almost valid But .get returns an object. For the IDE it is impossible to know what kind of object is returning