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!