Ok I need to hack out some VB6 code for this project at school, I am having a problem setting up the array.
What I am doing is very simple, the form has one button that says,"click me".
Once you click the button a input box pops up and asks, "are you 0 years old?", and your answer could be either yes/No. If you answer yes, a MSGbox appears and says, "you are 0 years old!". If you answer No, the input box continues with, "are you 1 years old?" and so on until your answer is yes.
I got the code worked out but i cannot seem to get the code to display a new number each time you answer no.
The way it is working now, is that when you answer no, it loops but with the same number (IE : "are you 0 years old?" answer:no, then the imput box appears again and says,"are you 0 years old?", and keeps repeating the same thing.)
Thats were i am having my problems. I know its gotta be a simple loop or a if-then-else, but i cant figure it out!!
any help would be great!