Information générale
Catégorie:
Codage, syntaxe et commandes
This will work, but you must take into account that it will take 100% of your CPU power during that time. The Sleep() API will relinquish CPU control to other running applications.
>There's probably (certainly??) a better way to do this in VFP, but this old 2.6 code should still work
>
>PRIVATE nSeconds
>nSeconds = SECONDS()
>DO WHILE SECONDS() < (nSeconds+30)
> ** nothing to do
>ENDDO
>
>This won't work if the 30 second time span goes past midnight - but you could code around that if necessary.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement