U
unba1300
Guest
This is a simple example of something I'd like to do in order to assign values to variables within a loop. But I can't seem to figure out how to merge varFood & iLoop together to make varFood1, varFood2, etc.
Is this possible, or should I use an array? Thanks.
B4X:
Dim iLoop As Int
For iLoop = 1 To 5
varFood & iLoop = 'pick a food at random from a list.
Next iLoop
Is this possible, or should I use an array? Thanks.