Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pressing K_ESC fired the VALID?
Message
De
22/10/1998 00:30:21
 
 
À
21/10/1998 22:32:06
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00149211
Message ID:
00149232
Vues:
18
>I suppose pressing K_ESC (chr(27)) during a READ will ends
>the read WITHOUT firing the VALID functions of the GETs.
>But lately, I found that wasn't the case in my screens,
>notably those generated by GENSCREEN. The VALID functions
>were fired even if I pressed K_ESC (during a READ CYCLE).
>
>I couldn't reproduce the adnormal behaviour if I wrote
>a simple program, like this one:
>
> * main()
> m.xx = 0
> @05,05 get m.xx valid v_xx()
> read cycle
> return
>
> function v_xx
> wait window "haha"
> return .t.
>
>Have you ever heard of this adnormaly? For the meantime,
>I need to insert codes to check for K_ESC in all VALID
>functions.

My experience is that pressing Esc always fires the valid clause, because I've had to put
if lastkey() = 27
return .T.
endif
in my valid clauses.

So I don't see it as an anomaly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform