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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Public Names 1

Status
Not open for further replies.

simoncpage

Programmer
Apr 4, 2002
256
GB
This is quite trivial I think I just am having bit of difficulty.

I have a number of Public Variables (boolean)

Pub1
Pub2
...
...
Pub10

I also have a form with a textbox that only accepts a number between 1-10. What I am trying to achieve is that when the textbox has the varible 2, pub2 = true and all other pubs >2 are false rather than doing it the long winded way (i.e if txtbox.value = 2 then.....pub2 = true etc...) Any help would be great...

Thanks Simon

 
The simplest answers are always the best! Thanks Skip!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top