Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal in a text box roundup automatically?
Message
 
 
To
09/12/2000 09:05:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00451143
Message ID:
00451145
Views:
17
>I have a text box which ControlSource = a numeric field of a table with 1 decimal place. but when I run the form and enter some number with 1 decimal place like 15.8, after the text box is lost focus, its value will change to 16.0 automatically. I have tried to use Set Decimals to 1 in the form's init but still not work. Anyone knows how to turn off this automatically roundup?

Chage the InputMask property of the textbox to include a decimal point.

Ex. 99999.9

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform