How to define and populate a multi-column List?

RichardK

Member
Licensed User
Longtime User
I have been puzzling over the manual without success - I am trying to create and populate a list with 3 columns (or do I need to define an array?) (and then extract data therefrom)

My experience is with VBA / Excel, so all my previous arrays have been worksheets!

If someone could point me in the right direction I would be grateful, RichardK
 

klaus

Expert
Licensed User
Longtime User
You should explain more in detail what exactly you want to do and for what purpose.
Do you want a List or a multidimensional Array.
Without knowing more precicely what you want to do it's difficult (even impossible) to give you a concrete advice.

Best regards.
 
Upvote 0

RichardK

Member
Licensed User
Longtime User
File attached and clearer (I hope) explanation below

I am attempting to shuffle a pack of cards, and diplay them one-at-a-time in random order, Picture + label.

1) I am using Erel's shuffle algorithm (which I have failed to get to work properly) - ?.

2) The cards display, (but not in Random order), but I have not succeeded in displaying the labels - ?

Sorry to be a nuisance, Richard
 

Attachments

  • Cards.zip
    11.2 KB · Views: 243
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
I think this replacement would do it

B4X:
j = Rnd(0, arr.Length)
 
Last edited:
Upvote 0
Top