Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace the value of lastkey()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Replace the value of lastkey()
Miscellaneous
Thread ID:
00461606
Message ID:
00461606
Views:
46
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.
Next
Reply
Map
View

Click here to load this message in the networking platform