BUG: Calculated Currency Field Ignores Formatting

ID: Q88603


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a, 6.0
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a


SYMPTOMS

If a Picture clause on an @...SAY command specifies a format for a currency field, this formatting may be ignored when the output is calculated. For example, if the Picture clause is $999.99 and the calculated output is $123.2342, all decimal places are displayed.


CAUSE

This problem occurs if the @ sign is used in the Picture clause.


RESOLUTION

Remove the @ sign from the Picture clause.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Problem

Run the following code:

   x = 123.1111
   @2,2 SAY x PICTURE "@$999.99" 
Note that the result is $123.1111 instead of $123.11.

Additional query words: picture say kbvfp500 kbvfp600

Keywords : kbprg kbVFp kbVFp500abug kbVFP260bug kbVFP250bug buglist2.00 FoxDos FoxWin FxprgGeneral KBQ
Version : MS-DOS:2.0,2.5x,2.6,2.6a; WINDOWS:2.5x,2.6,2.6a,3.0,5.0,5.0a,6.0
Platform : MS-DOS WINDOWS
Issue type : kbbug


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.