Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Absorbing a key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01228355
Message ID:
01228606
Vues:
21
If you don't get the keypress thing to work, why don't you go with the solution of Jon Love? Setting the Inputmask to 9999 works and only accept digits.

Besides that, there are 2 keypress events: form.keypress and textbox.keypress. To surpress ~ for that textbox, the textbox.keypress is of course the better event, you don't want to surpress that key for all controls on the form, do you?

Is it maybe, that your barcode sanner is such, that it does not act as a keyboard, but is connected to COM/RS232? Then keypress won't work, you would need to change something, which reads the barcode scanner input and stores it in the textbox.value.

Neither keypress nor inputmask would solve that, as you can set textbox.value="abcd", even if the inputmask is "9999". So look out for code setting the barcodetextbox.value.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform