| Junior Member with 1 posts. THREAD STARTER | | Join Date: May 2011 Experience: Beginner | |
[vb] Do until a button is clicked? hi there im a beginner in vb, im doing a traffic light system right now. i have build the code, but don't know how to loop the whole thing. The condition is like the following:
-There are three traffic lights, each goes and another follows after the previous one turns red.
-im now trying "do until (exitbutton.selected)" ..."loop" ---> doesnt return a value, i know there is a mistake here
the loop should continue running until user click on the exit button.
anyone can help me? im using a timer by the way, and i have declared the variable "count" to count the timer. should i add "count = 0" at the last part of the loop in order to let the count starts from zero again?
sorry i know ive explained quite poorly. Please feel free to ask more thank you  |