Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Here an easy one... the wait command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00407890
Message ID:
00409565
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform