Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timeout Issue
Message
De
02/05/2003 12:18:59
 
 
À
02/05/2003 11:20:08
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00784139
Message ID:
00784183
Vues:
21
Insert a DOEVENTS call in your DO WHILE .T. loop to let VFP process the timer:
DO WHILE .T.
   IF mytable.flag = .T. OR ThisForm.timeoutflag = .T.
      Exit
   ENDIF

   SELECT mytable
   Seek...
   DOEVENTS
ENDDO
HTH

>I am trying to minic a timeout function on a form. I want to loop until a record recieves a flag or a certain time has elapsed. I did the following but the code never picks up the properety change.
>
>ThisForm.Timer.Interval = 20000(sets ThisForm.timeoutflag = .T.)
>Do While .t.
>If mytable.flag = .T. Or ThisForm.timeoutflag = .T.
>Exit
>EndIf
>Select mytable
>Seek...
>EndDo
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform