Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PAUSE in VFP5
Message
From
28/09/1998 22:04:50
 
 
To
28/09/1998 22:00:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00141705
Message ID:
00141735
Views:
34
It is case sensitive. I just typed it in and tryed it
*---------------------------------
Declare Sleep in Win32API Integer
=Sleep(100)
*---------------------------------

Charles

>>You could use the Sleep API
>>
>>DECLARE Sleep IN WIN32API INTEGER
>>
>>The integer is in milliseconds. So if you wanted to wait 100 milliseconds the function is =Sleep(100) then the rest of your code.
>>
>>Charles
>>
>>
>>>I have this app that communicates with the COM ports using a DLL. I need to send a request to the DLL and wait about 100 miliseconds before I loop id the wrong return value is received. To achieve this I have a WAIT WINDOW"" TIMEOUT .1
>>>This procedure is called approx every 200 mili seconds with a timer.
>>>
>>>DO WHILE err_code #0
>>> err_code = dll_call(parm1,parm2...)
>>> WAIT WINDOW '' TIMEOUT .1
>>>ENDDO
>>>
>>>...rest of procedure.
>>>
>>>The problem is that the wait window firing as fast as it is my keystrokes to the main application as well as mouse clicks are being "EATEN" by the Wait Window.
>>>
>>>IS THERE ANY OTHER WAY TO "PAUSE" CODE EXECUTION IN A PROGRAM FOR A SPECIFIED TIME BUT WITHOUT A FUNCTION THAT EATS KEYSTROKES??
>>>
>>>THANKS
>>>
>>>BERNARD
>
>Tried it exactly as you said
>
>I get VFP error
>
>"Cannot find entry point sleep in DLL"
>
>Please help
>
>Bernard
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform