Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter percentages as whole numbers?
Message
From
26/01/2007 10:10:22
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01189535
Message ID:
01189614
Views:
12
This message has been marked as the solution to the initial question of the thread.
What I have done in similar situations is not bind directly to the field. Instead, I bind it to a property of the form or container, then put code in the Refresh method of the control to set that property from the source after multiplying by 100 and in the valid method to save it to the source after dividing by 100.

...Jim

>I have a data entry form containing percentage fields that are defined as N(4,2). I would like the users to be able to enter 100% as 100 rather than 1.00, 50% as 50 rather than 0.50, and so on. Is there some formatting option that supports this or is my only option to change the field definitions to N(3,0)? (They can never be greater than 100%).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform