General information
Category:
Coding, syntax & commands
re: disable the "-" key
On key label - Do Nothing
Procedure Nothing
Return && Nothing
If you had the job-number (no "-") and a last name (with hyphenated last name) on the same form. You couldn't turn the "-" on for one field and off for another this way.
Wouldn't it be better to trim the "-" out of the data during the LostFocus event?
LostFocus:
this.value = allt(strtr(this.value,"-",""))
Then the user who is watching what they type isn't confused when they press a dead key, but you still pass 'clean' data to your application.
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