Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement