Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement