[Gambas-user] Empty While loop question

nando nando_f at ...951...
Wed Apr 20 05:24:45 CEST 2005


Question...
Assume there is a timer on the form
and the following 3-line code fragment is running
(which is NOT inside the timer sub)

...
Timer1.Enabled = True
WHILE  Timer1.Enabled = True         'wait here until timer completes
WEND
...

Public Sub Timer1_Timer

  Timer1.Enable = False

End Sub


The purpose is to wait a prescribed amount of time, which the
timer is used for, at which time the timer is disabled and
the program continues.

Question: Why does the timer event not actually fire??
-Fernando






More information about the User mailing list