The information in this article applies to:
SUMMARYThis article describes how to display a blank in place of .NULL. in a Grid column in Visual FoxPro 3.0, and 3.0b. MORE INFORMATIONBy default, fields containing NULL values are displayed as .NULL. in a Grid in all versions of Visual FoxPro. To display a blank in place of .NULL. in a column of a grid in Visual FoxPro 3.0 and 3.0b, place an inline if (IIF) statement in the DynamicForeColor property of the subject column. The IIF sets the column's ForeColor to the same color as the Grid Column's BackColor when the field contains a value. In Visual FoxPro 5.0 a NULL value can be displayed as a blank in a Grid by issuing the following SET command, which makes setting the DynamicForeColor unnecessary:
Use the following steps to set the DynamicForeColor property of a column to
white when a field contains a NULL value and to black when the value is not
NULL. This article assumes that the Grid column's BackColor property is
white (255,255,255) and that the ForeColor property is black (0,0,0). This
article also assumes a working knowledge of creating forms, grids, and
tables.
Additional query words:
Keywords : kbnokeyword kbVFp300 kbVFp500 kbVFp600 |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |