Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eliminate the additional 0 in numeric field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00397904
Message ID:
00397931
Views:
17
Ok ! Then try this :


*/KeyPress Method of TextBox control
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 9 .OR. nKeyCode=13 .AND. AT(" ",This.Text)#0
lcVal = CHRTRAN(This.Text,",.", "")
This.Value = VAL( LEFT(lcVal, AT(" ",lcVal) ))
ENDIF

Zero or some other number still shows, but value on exit should be ok !
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform