Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21990

I have a question regarding variables and checkboxes

$
0
0
Hello!

I am making this random number generator game where you are playing against the computer, and the one who gets 3 labels with the same numbers first will win, numbers are from 1-9.

Right now I have a form with 6 checkboxes, 8 frames where 6 of those are for the numbers to be in and 1 for the player's desired name, and the last one with the name "Computer".
I also have a command button which says "Roll the dice", and when it is clicked it will generate a random number to every label. And here is my problem, when I check one of the checkboxes, the number in the label it is connected to, should remain unchanged if I roll the dice again, which is what I need your help with!

I have come to the point where I have to make it save the current number in the label and use it as the caption, or something like that. And I have no clue on how to continue from here.

Thanks in advance!

Viewing all articles
Browse latest Browse all 21990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>