Hi I have 3 lists, so far so good, someone said can I add a sort feature to my app.
And this is where the app falls to bits lol!
Its become apparent you cant sort 3 lists! So I thought of maps (as thats where my B4X experience stops)
So map1, map2, map3, and use the same key. then I can just sort the list and use the maps to get the data.
The Question is that the best way??
I have seen a custom type, and I made it, but cant work out how to add data to it, I was expecting to be able to do something like.
Where am I going wrong?
Thanks
And this is where the app falls to bits lol!
Its become apparent you cant sort 3 lists! So I thought of maps (as thats where my B4X experience stops)
So map1, map2, map3, and use the same key. then I can just sort the list and use the maps to get the data.
The Question is that the best way??
I have seen a custom type, and I made it, but cant work out how to add data to it, I was expecting to be able to do something like.
B4X:
Sub Process_Globals
Type InternalApps(App_Name As String, App_Package_name As String, App_Version As String, App_Icon As String)
End Sub
Sub Globals
Private var1 as string = "blah"
Private var2 as string = "blah 1"
Private var3 as string = "blah 2"
private var4 as String = "blah 3"
End Sub
Sub Activity_Create(FirstTime As Boolean)
InternalApps.initialise
' THE CONFUSION!'
InternalApps.Add(var1,var2,var3,var4)
End Sub
Where am I going wrong?
Thanks