BUG: Character Field Appears as Date in Microsoft Graph

Last reviewed: March 20, 1998
Article ID: Q100445
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

When FoxPro is outputting a character field to Microsoft Graph that contains values that look like dates, the graph will display these numbers in the dd-mmm (day-month) format. For example, a character field containing "1-10" or "1/10" will display as "10-Jan" on the graph. Anything larger than "12-31" or "12/31" displays correctly since there are no months that would correspond with these numbers.

RESOLUTION

To work around this problem and display the character fields correctly, place a blank space at the beginning of the character expression. To do this without making any modifications to the actual database file, do the following:

  1. FoxPro 2.X: In the RQBE window, select the Fields check box.

    Visual FoxPro: In the Query Designer window, select the Fields Tab.

  2. Remove the character field from the Selected Output list.

  3. In the Functions/Expressions box, type

          " "+<char>
    

        where <char> is the name of the character field.
    

  4. Choose Move to move the expression to the Selected Output list.

  5. Output the query to a graph.

The character field will now be displayed correctly.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5 and 2.5a for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: msgraph
Keywords : buglist2.50 buglist2.50a buglist3.00b vfpbug5.0a kbinterop kbbuglist
Version : 2.5 2.5a 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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