Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter percentages as whole numbers?
Message
From
26/01/2007 09:14:39
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01189535
Message ID:
01189550
Views:
6
>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%).


Enter the value as an ordinary number, then use it in equations, divided by 100.

BTW, the user can't enter 98.25%? i.e. the field definition must be n(5.3), i.e. 999.99 (but max value 100)
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform