Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00155337
Message ID:
00155362
Vues:
31
>>Dave,
>>
>>Try putting a DOEVENTS command in your loop.
>>
>>>I want to be able to stop my program during a while loop and have tried the following but it did not work.
>>>
>>>llgo = .t.
>>>ON KEY LABEL CTRL+HOME llgo = .f.
>>>do while !eof() and llgo = .t.
>>> .
>>> .
>>> code.........
>>> .
>>> .
>>> skip
>>>enddo
>>>
>>>Does anyone know what I'm doing wrong. Pressing the ctrl+home key
>>>does not me out of the while loop.
>>>
>>>TIA,
>>>Dave
>
>Josh thanks that worked great! Do other events get put on hold while a while loop is running. Like maybe the oncomm event in the MSCOMM32 control?

Yes. Any time you are waiting for an ActiveX control event to fire you should either be in a wait state or use DOEVENTS.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform