Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace the value of lastkey()
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Replace the value of lastkey()
Divers
Thread ID:
00461606
Message ID:
00461606
Vues:
45
Hi all

In the Kepress Event of a textbox I trap the DEL key
and run some code
How can I change the value of lastkey() after the Code as run

Ex.:
Do Case
Case nKeyCode = 7 && DEL
MESSAGEBOX("1-LASTKEY()"+STR(LASTKEY())) && = 7
&& Display a Messagebox Asking if we delete or not

If !Thisform.M_Delete("V")
CLEAR TYPEAHEAD
KEYBOARD'{HOME}'CLEAR
MESSAGEBOX("2-LASTKEY()"+STR(LASTKEY())) && Still 7
&& The first letter is deleted because lastkey() = 7
Endif
Endcase

Any Tips ?
thanks
Ben.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform