Re: Grid - Zero values by tim_witort
tim_witort
Wed Feb 20 00:22:47 CST 2008
Peter Huish seemed to utter in news:MPG.221f7be055ea67769896e7
@news.easynews.com:
>
> I have a Grid on a form where the column is using the 'Z' format meaning
> that for numeric values, if the value is 0 then the column is displayed
> as a blank. Recently a requirement has emerged whereby a value of zero
> is a legitimate value in the grid.
>
> The problem is that I want to be able to display a zero value when there
> is a zero result but a blank value when no previous value has been
> entered.
>
> Is that possible?
>
> I am using VFP 7
As others have stated, NULL will likely do what you want,
but if you're not accustomed to working with NULLs, it
might be problematic. And if you're not using DBCs, you'll
need to switch to DBC data storage.
Another option is to use a text field rather than numeric.
These can handle zeros, spaces, and numbers nicely. Then
you would convert the text to numeric if/when calculations
need to be done using that field.
Your application requirements will determine which
approach is easier.
-- TRW
_______________________________________
t i m . w i t o r t
_______________________________________