Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting a decimal in programmatically
Message
From
23/10/1998 22:18:46
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00150068
Message ID:
00150069
Views:
28
>hi
>
>I don't find the format/inputmask properties to work out this problem I'm having.
>I want to enter an amount into a textbox and have the value change it to put the decimal point in the correct place when leaving the control.
>ex: Enter 2559 and get 25.59 without entering a decimal point manually. Adding machines have this feature.
>
>I thank anyone with the answer.

Set inputmask 9999,9999.99 and in the valid event of the control write something like "THIS.VALUE = THIS.VALUE/100"
There´s a better life... Just it´s more expensive!
Cristóbal Manrique M.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform