B4J Question How to access a value in a list of arrays?

HowardTheDuck

Member
Licensed User
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
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
Top