Hi
I am confused about how to insert a type into a list
So far I have....
What I miss?
What I do wrong?
I am confused about how to insert a type into a list
So far I have....
B4X:
Sub Process_Globals
Thelist As List
TheList.initialize
Type TheRT(Code As String, Description As String, Price As Double, Quantity As Double)
Public ItemInfo As TheRT
End Sub
Sub ItemTable_All_Items_CellClick(col As Int, row As Int)
ItemInfo.initialize
ItemInfo.Code = ItemTable_All_Items.GetValue(0,row)
ItemInfo.Description = ItemTable_All_Items.GetValue(1,row)
ItemInfo.Munit = ItemTable_All_Items.GetValue(2,row)
ItemInfo.Price = NumberFormat2(Price1, 1, 0, 4, False)
ItemInfo.Quantity = NumberFormat2(Quantity1, 1, 0, 2, False)
Thelist.Add(PublicCode.ItemInfo)
End Sub
What I miss?
What I do wrong?
Last edited: