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

Click here to load this message in the networking platform