There's a listbox filled by the AddItem method with 2 or 3 or 4 items (the nuber changes).
Now I want that a random chooses one item from the list.
Is this possible in VB3 ?
Thx for some help, Matt ;)
Printable View
There's a listbox filled by the AddItem method with 2 or 3 or 4 items (the nuber changes).
Now I want that a random chooses one item from the list.
Is this possible in VB3 ?
Thx for some help, Matt ;)
Code:randomize
MyRand = int(4 * rnd)
me.print list1.list(Myrand)
a little more accurate:
rnd*(list.ListCount)
but it's just as easy.