Lawrence,
No special requirements for this API call. This is the reason why I still prefer to use API calls rather than the easier to use WSH. In my environment there are still workstations that don't have WSH.
Another thing you may try is to call the WAIT WINDOW only every x number of records. Something like this:
DO WHILE < whatever >
IF MOD(RECNO(), 1000) = 0
WAIT WINDOW NOWAIT "Working with record # " -;
TRANSFORM(RECNO(), "99,999,999")+;
" of " +;
TRANSFORM(RECCOUNT(), "99,999,999")+;
" ("+;
TRANSFORM(RECNO()/RECCOUNT() * 100,"999") +;
" % )"
ENDIF
ENDDO
HTH
>Daniel,
>
>Thanks for the tip. Does using this API call require any special attention when I create distribution / install disks (e.g. specific libraries that must be included)?
>
>-- Larry
>
>>Lawrence,
>>In addition to Hilmar's reply, if you need a timeout in VFP, it's more efficient to use the API call Sleep():
>>
>>DECLARE Sleep IN WIN32API INTEGER nMillisecs
>>
>>DO WHILE < Whatever >
>> Sleep(200)
>> *-- processing
>>ENDO
>>
Daniel