|
-
Dec 18th, 2008, 06:05 AM
#1
Thread Starter
New Member
Check box and random number
Dear supporters,
I am just a beginner of VB6 but I know there are plenty of you here in this forum to support people like me. 
I wanted to write a code so that when I click on a command button it shows a random number in the text box. The random number I want will depen on 3 check boxes.
If the first check box is checked, I want the random number from 1 to 3. If the second check box is checked, I want the random number from 4 to 6. And if the third check box is checked, I want the random number from 7 to 9.
Then how can I write a code so that when the first and the third check boxes are checked a random number shows in my text box varies either 1, 2, 3, 7, 8 and 9 (but not 4, 5 and 6)?
Thanks in advance for your help.
With my best regards,
Viratha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|