Android Question Type variable as list

Stern0m1

Member
Licensed User
How can I declare a type variable as a list for the purpose of a dynamic array?


Type values(Checked As Boolean, description As String, time As String, days As String)

Dim values as values As List??????

Thanks
 

stevel05

Expert
Licensed User
Longtime User
B4X:
Dim L as List ' As a global variable in Process_Globals
'...
L.Initialize
Dim value as Values
value.Initialize
value.checked = false
'etc...
L.Add(value)

To recall a value
B4X:
Dim Value as Values = L.get(0)
 
Upvote 0
Top