Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter percentages as whole numbers?
Message
 
 
À
26/01/2007 10:10:22
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01189535
Message ID:
01189684
Vues:
10
I like the sound of that. About to give it a try....


>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%).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform