Display all Elements in an Array - Help, Mindblock!

Got one of these mind blocks when I just can’t get something very simple to work. I have a variable array as follows:

cards(0) = “1234”

cards(1 )= “4567”

cards(2 )= “8900”

cards(3 )= “8911”

All I want to do is display a simple MsgBox("The cards currently active are " & cards)

I can display a single element in the array no problem (cards (2)) but how do I get the messagebox to simply display all the elements stored in the array?

Help greatly appreciated.

Thanks.

Subject: Display all Elements in an Array - Help, Mindblock!

Subject: RE: Display all Elements in an Array - Help, Mindblock!

Perfect. Thanks. LS.

Subject: RE: Display all Elements in an Array - Help, Mindblock!

BRILLIANT! This helped me. THANKS!

Subject: RE: Display all Elements in an Array - Help, Mindblock!

Thank you for searching before asking! :slight_smile:

Subject: RE: Display all Elements in an Array - Help, Mindblock!

Uhh… you’re welcome! I normally do… but when I ask questions you & Stan are on my list where I’ll start dancing around in my chair if I see you have responded to my question because I know the problem will be solved! ;-}

Subject: RE: Display all Elements in an Array - Help, Mindblock!

It looks like the answer from Willie has been deleted. Can anyone tell me what it was? I have a similar question. I figure I can write something that takes all the elements and puts them into a string, but don’t want to miss out on an easier solution…

Subject: RE: Display all Elements in an Array - Help, Mindblock!

You’re right. There’s an easier solution. Look up the join() function in the Domino Designer help file.

-rich