General information
Category:
Coding, syntax & commands
Title:
Replace the value of lastkey()
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only