Hi i have this code:
Mytype is:
The File Excel that i load with LoadCSV is this:
Now the problem is when i enter in For i see value Log(sColumn ) in correct mode:
but when run line mtp=lst1.get(i) go in error.
Any idea ?
Thank you
Marco
B4X:
Dim lst1 As List
lst1.Initialize
lst1 = su.LoadCSV(directoryname, filename,";")
Dim mtp As MyType
mtp.Initialize
For i = 0 To lst1.Size - 1
Dim sColumn() As String
sColumn = lst1.Get(i)
Log(sColumn)
mtp = lst1.get(i)
Log(mtp.description_food)
Next
Mytype is:
Type MyType(id_category_menu As Int , id_details As Int , description_food As String , description_extend As String ,price_small As Double, price_medium As Double, price_large As Double, picture_food As String, currency As String)
The File Excel that i load with LoadCSV is this:
Now the problem is when i enter in For i see value Log(sColumn ) in correct mode:
[0=id_category_menu, 1=id_details, 2=description_food, 3=description_extend
, 4=price_small, 5=price_medium, 6=price_large
, 7=picture_food, 8=currency]
but when run line mtp=lst1.get(i) go in error.
Any idea ?
Thank you
Marco