Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not displaying numeric value '0.00' in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00213360
Message ID:
00213361
Views:
34
>Hi,
>
>We have a grid with a column displaying a N(10,2) field that we want to be able to modify. It works fine, but the grid becomes difficult to read with many such columns. To make it more readable we would like the column to display '' when value is 0.00.
>
>We have tried different ways without sucess:
>
>-Setting the column controlsource to IIF(amount > 0.00, amount, '') displays it properly, but does not allow us to modify.
>
>-Setting DynamicCurrentControl again displays it correctly, but when entering the textbox to modify, the forecolor and backcolor are set to those specified but DynamicForeColor etc.
>
>What I would like to have in some property 'blank if zero'.
>

A SWAG - you might try adding a spinner in the column, with the column's .SPARSE property set to .T. and the spinner's .FORMAT property set to "Z". I haven't tried this myself.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform