Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Timer
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00538309
Message ID:
00538640
Views:
9
Doug,

In addition to Vlad's advice: I believe, this topic was arisen here once, and wait window is CPU consuming..., so the best way is still with the sleep function...

>Vlad,
>
>I don't know what the true minimum is, but ...
>
> wait window 'test' timeout .001
>
>... is pretty fast.
>
>Doug
>
>>Hi!
>>
>>Minimum timeout for WAIT ... TIMEOUT command is 1 second. Better use Sleep API function that does the same:
>>DECLARE INTEGER Sleep in Win32API integer nMilliseconds
>>
>>=Sleep(10) && wait 10 milliseconds
>>
>>
>>
>>>Set a WHILE loop
>>>
>>>DO WHILE [some logical construct]
>>>
>>> WAIT WINDOW [some message] TIMEOUT [time you need to take]
>>>
>>> code you need to run
>>>
>>> IF LASTKEY() = -9 (f10 to exit loop if needed)
>>> [some logical construct if false]
>>> ENDIF
>>>ENDDO
>>>
>>>**************
>>>The great thing about the Wait is it takes no processor power and no special libraries and it will not knock out your web server. Works for FPW and VFP.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform