Hilmar,
Sleep pauses the current program for the specified timeout without waiting for any input. I'm not sure how significant this is, but in a tight loop this may well make a difference. Sleep is particularly useful in COM-server DLLs where UI functions such as WAIT and INKEY() are not available.
See also MSKB#
Q260337HTH
>>Lawrence,
>>In addition to Hilmar's reply, if you need a timeout in VFP, it's more efficient to use the API call Sleep():
>> ...
>
>Daniel,
>
>Since this is relatively new for me, I wish to ask in what way would Sleep() be more efficient?
>
>Hilmar.
Daniel