Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Filling of text boxes on Form load

Status
Not open for further replies.

richardvf

Programmer
Aug 24, 2001
1
GB
I have a form with 20 text boxes which are populated on form load with predetermined words.
I would like to have , for example a pool of some 100 words
with the 20 text boxes filled with a RANDOM selection of the
100 words.
Anybody help ?
Thanks
 
Put your list of word in an array.

Draw random numbers in the range of your array.

Keep track of the words you have chosen so that you do not repeat.

Do this in a loop 20 times, filling one box per iteration.

And there you have it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top