Hi,
Sorry, was in a hurry typing that one. You don't need the for...endfor loop since the sleep parameter is already multiplied by the parameter for the program.
I got this idea awhile back here at UT. It was about simulating a progress bar on the status bar. I think the sleep api accepts parameters in milli seconds (1/1000), but I'm not sure.
Arriyel
>Cool, seems to work! Thanks for the help. I hate to admit it, but I am not to up-and-up on winapi functions... I will read through win32api.hlp maybe I can learn something. I bet there is a lot of useful functions to use?
>
>One question, why is there a need for the FOR I 1 = 10 statement?
>Thanks!
>
>>Try some thing like this:
>>
>>** MyWait.PRG
>>* Waits for a specified number of seconds.
>>PARAMETERS nSeconds
>>declare Sleep in win32api integer
>>
>>for I = 1 to 10
>> =Sleep(nSeconds*1000)
>>endfor
>>
>>You might want to add a 'set escape off' or some error capture too to prevent an error message appearing when the user presses the 'ESC' key.
Speak using soft and sweet words in case you have to eat them later.