Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here an easy one... the wait command
Message
 
To
22/08/2000 14:25:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407890
Message ID:
00409535
Views:
26
Carl,

Actually INKEY() will also allow the use to exit the process with a keystroke, so this should work for you;
PRIVATE llGoOn

* Do some code

* Then 

loTimer = CreateObject("MyTimer")
llGonOn = .F.
loTimer.Interval = 30000
loTimer.Enabled = .T.
DO WHILE NOT llGoOn
   INKEY(.5)
ENDDO
RELEASE loTimer
* Do your other code

RETURN

DEFINE CLASS MyTimer AS Timer
PROCEDURE Timer
   llGoOn = .T.
ENDPROC
ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform