Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exception C0000005 on wait window command
Message
De
27/11/2001 11:02:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00586253
Message ID:
00586358
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform