How to Print Check Boxes Instead of Y/N in FoxPro ReportsID: Q114135 2.50 2.50a 2.50b 2.60 3.00 | 2.50b kbtool kbprint kbprg
The information in this article applies to:
SUMMARYLogical fields can be represented on reports as check boxes in FoxPro for Windows and FoxPro for Macintosh.
MORE INFORMATIONIf a logical field is simply placed in a report, the value .F. or .T. is printed. To improve the appearance of your report, you can enter the picture "Y" in the Format box in the Report Expression dialog box. This will cause all false values to print as N, while all true values will print as Y. While this technique is certainly adequate and has been available since FoxBASE, FoxPro for Windows and FoxPro for Macintosh offer a graphical solution that many people find more visually attractive. Instead of using Y and N, check boxes are used on screens to indicate individual choices that are either turned on or off. In the case of the report, the field label indicates the choice and the check box for each record either contains an X to indicate that the particular option was selected or is blank to show that the option was not selected.
To Create This Effect in the Report Writer1. Use the Box tool to place a small box at the appropriate location. 2. Use the Field tool to place a field on the report, and then enter and 3. From the Object menu, choose Font, and then choose Arial, 12, and Bold.
4. Drag the field over the center of the small box. Ideally, the field 5. Press CTRL+I or choose Preview from the Report menu, and verify that the
6. Once the X is properly positioned, open the Report Expression dialog
Additional reference words: VFoxWin 3.00 FoxMac FoxWin 2.50 2.50a 2.50b
2.60 graphic extended characters RWriter Report Designer
KBCategory: kbtool kbprint kbprg
KBSubcategory: FxtoolReportdes
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |