FIX: Can't Give Numeric the Currency Format in Report Writer

Last reviewed: October 14, 1997
Article ID: Q102704

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5
  • Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS

In the Report Writer, you cannot format a numeric value with the currency format. If you select the Currency check box, a dollar sign is placed before the number, but the number of digits after the decimal point isn't always going to be two.

RESOLUTION

In FoxPro for Windows or FoxPro for Macintosh, do the following:

  • Modify the expression for the field as follows:

          transform(<fieldname>,"$$$,$$$.99")
    

    NOTE: Do not use any of the options under Format when using this workaround.

    -or-

In FoxPro for Windows, (does not work in FoxPro for Macintosh) do the following:
  • Type the following format in the Format box, giving the desired size:

          $999,999.99
    

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro version 2.5a for Windows.


Additional query words: FoxWin FoxWin
Keywords : buglist2.50 FoxWin FxtoolRwriter RWriter fixlist2.50a kbbuglist kbfixlist
Version : WINDOWS: 2.50, Macintosh: 2.60a
Platform : MACINTOSH WINDOWS
Issue type : kbbug
Solution Type : kbfix


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: October 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.