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:
00397958
Views:
9
Hi,

This way it is getting somewhere, but it would be nice
if the 0 will disapear right at the first click.

Thanks

Doron


>
>
>*/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