Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro grid column custom formatter
Message
From
09/01/2013 08:18:18
 
 
To
08/01/2013 17:29:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01561809
Message ID:
01561868
Views:
103
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform