![]() |
Need help with array and random class
I have these state and capital arrays below; I am trying to create a program that has one label and four radio buttons... When you run the program a question comes up in the label... what is the capital of (state name) ....then four state capitals show up in the radio buttons and you have to make a choice. Need help with random class..... a string to hold the correct anwser.. PLEASE HELP; Thank you in advance
Code:
'Declare module level variables |
Re: Need help with array and random class
you need to add the count of the array elements. or ReDim it. This is visual; basic though and not php.
Code: Visual Basic
Or Code: Visual Basic
As for the class just use a function to select 3 randoms and have it except the actual capital as a param so it can loop through and find it in the array. |
| All times are GMT +5.5. The time now is 23:22. |