Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inkey() failure
Message
De
18/10/2004 12:28:12
 
 
À
18/10/2004 11:12:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00952250
Message ID:
00952314
Vues:
8
IF You want Your code
llpress_esc = .F.
SET ESCAPE OFF
DO WHILE NOT llpress_esc
   llpress_esc = (INKEY() == 27)
   ......
   ......
ENDDO
Update: Sorry Fabio not for You :o((((
>>Hi all
>>
>>I have the following piece of code to trap Escape key that sometimes work and at other times doesn't.
>>
>>llpress_esc = .F.
>>DO WHILE NOT llpress_esc
>> llpress_esc = INKEY()
>> ......
>> ......
>>ENDDO
>>
>>I would appreciate if anyone can shed some light on my problem. Thanks
>>
>>Best Regards
>
>
>local lEscape
>SET ESCAPE ON
>ON ESCAPE lEscape=.T.
>DO WHILE !m.lEscape
>   ....
>   DOEVENTS
>ENDDO
>SET ESCAPE OFF
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform