> IS THIS POSSIBLE HERE IN C2? HOW? I MADE A RANDOM NUMBER CAPX BUT I FIND IT HARD TO THIS FLOW.. I HOPE YOU CAN HELP WITH A CAPX. THANKS.
You can do it in several ways, either with a list, array, dictionary or from a file etc.
To do it with a list (Which is the easiest to explain I think), you can use "Add to list" and then insert a String. The list will automatically give each item an index, starting at index 0.
3: ... so on
The String you insert could come from a Textbox and you can retrieve the name from the list at an given index using get "ItemTextAt" and you can change the index that you want to get with an "Int(Random(List.Itemcount))" to make it choose a random index from the list.
Here is an example:
First of all, Thank you for the reply and sample capx. But I hope you can help me as I got lost as Im doing my codes in the events.
Im using a global variable for the random number and I find it hard to connect the random number and the list .. is this possible or my coding is just complicated? or maybe there is much more simple logic than what im doing? Thanks again for the future help..