Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro grid column custom formatter
Message
De
09/01/2013 08:18:18
 
 
À
08/01/2013 17:29:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01561809
Message ID:
01561868
Vues:
102
>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
Fil
Voir

Click here to load this message in the networking platform