How to Change a Field Color Based on the Field's ContentsID: Q114254 2.50 2.50a 2.50b 2.60 | 2.00 2.50 2.50a 2.50b 2.60 kbprg
The information in this article applies to:
SUMMARYThis article describes how to change the color of a field based on its contents. Changing the color of a field based on what it contains may be useful to users who are scrolling through the records in an input screen.
MORE INFORMATIONTo create the screen, do the following: 1. Open the CUSTOMER.DBF database located in the TUTORIAL subdirectory. 2. Create a screen and choose Quick Screen from the Screen menu. 3. Add two push buttons to the screen with the variable name M.CHOICE. 4. If you are using FoxPro for Windows, choose Layout from the Screen menu.
If customer.lat is greater than 35, the field will have a white foreground
and red background. If customer.lat is less than 35, the field will have
the default colors of a white foreground with cyan background in FoxPro for
MS-DOS and a black foreground with gray background in FoxPro for Windows.
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.60 set KBCategory: kbprg KBSubcategory: FxprgGeneral
|
|
Last Reviewed: May 1, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |