Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception C0000005 on wait window command
Message
From
27/11/2001 11:02:53
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00586253
Message ID:
00586358
Views:
17
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 >
  *-- display the WAIT WINDOW every 1000 records
  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) && timeout of 200 millisecs
>>  *-- processing
>>ENDO
>>
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform