simoncpage
Programmer
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
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