Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here an easy one... the wait command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407890
Message ID:
00409565
Views:
22
>Carl,
>
>Actually INKEY() will also allow the use to exit the process with a keystroke, so this should work for you;
>
Or better, call the Win32API Sleep() function
DECLARE Sleep IN WIN32API INTEGER dwMillisecs
=Sleep(30*1000) && ms

>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
>
>
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform