General information
Category:
Coding, syntax & commands
I screwed this up. I called the keypress event from the valid event. So I was still getting the problem that I couldn't cancel when I tested my program more. How do I call the keypress event of my textbox?
This is what I had
Valid event
this.keypress(lastkey())
Keypress event
LPARAMETERS nKeyCode, nShiftAltCtrl
if nKeyCode = 13
if(add2list())
thisform.text1.value = right('00000'+alltrim(str(recno("tmplist")+1)),5)+':'
thisform.list1.requery()
else
this.value = ""
endif
endif
Thanks,
Tyler
Previous
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