Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customer Keyboard Problems
Message
 
To
01/08/2017 02:49:11
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01652603
Message ID:
01652960
Views:
83
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
Previous
Reply
Map
View

Click here to load this message in the networking platform