How to Underline Objects in a Report Form Using FONTSTYLE

Last reviewed: December 14, 1995
Article ID: Q119233
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x
  • Microsoft FoxPro for Macintosh, versions 2.5x, 2.6a

Even though you do not have the option to specify underline as a font characteristic in the Report Writer, you can add this characteristic as follows:

  1. To add the underline characteristic to an object in a report, you must open the report file as a table. To do this, issue the following command in the Command window:

          USE myreport.frx
    

  2. Change the contents of the FONTSTYLE field to represent the style you want to use for that particular object. To underline the object, add 4 to the value of FONTSTYLE.

    NOTE: FONTSTYLE is an integer value based on a simple bitmask, as follows:

          Binary      Decimal      Appearance
          -------------------------------------
          0000     =     0     =     Plain
          0001     =     1     =     Bold
          0010     =     2     =     Italic
          0100     =     4     =     Underline
    
       Therefore, if FONTSTYLE = 3, the font will be bold italic. To make the
       font bold italic underline, add 4 to 3 for a value of 7.
    
    
For information about using the Line Draw feature to underline fiels, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q97059
   TITLE     : How to Underline Fields in the Report Writer


Additional reference words: FoxMac FoxWin 2.50 2.50a 2.50b 2.50c 2.60 2.60a
bit mask bit-mask typeface type face RWriter
KBCategory: kbprg kbhowto
KBSubcategory: FxtoolRwriter


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 14, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.