Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>In foxpro grid we've got a column bound to field ( N ) . Just wondering whether it is doable ?
>
>Expected behaviour :
>Column hour_minute :
>
>No application flag set
>Entered 4.5 saved as 4.5 and shown as 4.5
>
>Flag is set to minutes
>Entered 4.30 saved as 4.5 in a table, kept to be shown as 4.30 in a grid.
>
>We assume rounding to quarters either for decimals or real minutes entered. 0.25 , 0.5 , 0.75 or respective 0.15, 0.30 , 0.45 minutes.
>Introducing another expression based read-only column which shows value based on application flag and bound column is always converted to decimals may be a solution.
Check out the DynamicInputMask property, although that may be not be sufficient for your needs. Maybe put two controls in the column and use DynamicCurrentControl.
You'll probably also need some code in the control's GotFocus or When to do whatever conversion is called for.
Tamar
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