Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pausing in my .dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00315821
Message ID:
00316056
Vues:
20
FWIW, you have to be careful with what you use Sleep for, because it suspends VFP's main thread. In a DLL it's probably safe to do this, but in other situations using Sleep causes all of VFP to freeze up including possible events that might be firing from ActiveX control and the like.

+++ Rick ---


>>I am working on a web page that uses a created VFP .dll. I need to put a pause in the .dll while it waits for a file. I have set up a do while statment until it returns which sends the utilization up to 100%. I've tryed using a timer, but the time doesn't seem to fire in the page. Has anyone experienced similar problems?
>>
>>Chris
>
>You could try using Sleep fromthe Windows API:
>
>DECLARE Sleep IN WIN32API INTEGER
>
>
>Sleep(1000)
>
>The parameter is in milliseconds. Note that "Sleep" is case sensitive!
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform