Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label
Message
De
06/11/1998 15:08:50
 
 
À
06/11/1998 15:05:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00155337
Message ID:
00155342
Vues:
23
>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

It's better to use INKEY (it will really interrupt VFP processing), in your case VFP tends to process your keystroke only when process will stop, and loop is endless.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform