Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Customer Keyboard Problems
Message
 
À
01/08/2017 02:49:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01652603
Message ID:
01652960
Vues:
84
This message has been marked as a message which has helped to the initial question of the thread.
Hi Dennis,

that's why you need some kind of handler-method, which will handles all different kinds of
input through your buttons or whatever control you use.

This is how I handle a numerich field. But note that it's only a small part üf the routine.
CASE thisform.cactivefield = "txtmenge"
   IF cmdvalue $ "0123456789-" 
       IF cmdvalue == "-" 
           IF AT("-",thisform.cValStore) > 0
               thisform.cValStore = Strtran(thisform.cValstore,"-","")
           Else
               thisform.cValStore = cmdvalue + thisform.cValstore  
           Endif   
       Else
            thisform.cValStore = thisform.cValstore + cmdvalue
       Endif   
       thisform.txtpad.txtmenge.value = VAL(thisform.cValstore)		
    Endif
Best regards

Thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform