BUG: ? Displays Incorrect Number of Characters to ScreenLast reviewed: January 5, 1998Article ID: Q178664 |
The information in this article applies to:
SYMPTOMSSending output to the desktop with a question mark (?) or @ SAYS may cause incorrect output to appear on the screen. If the variable that is being output is quite long, around 200 characters or greater, the output generated will not be the same as the length of the variable. The number of characters displayed should match the number of characters in the variable.
CAUSEThe Visual FoxPro screen font is set to a proportional font. Different proportional fonts produce different results.
RESOLUTIONSet the Visual FoxPro screen font to a mono-spaced font. Courier New and Foxfont are two fonts that should produce the correct output.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce BehaviorRun the following commands in a program or from the Visual FoxPro Command window:
_SCREEN.FONTNAME = "Arial" _SCREEN.FONTSIZE = 10 x = REPLICATE('0123456789',25) && Creates a string 250 characters long ? LEN(x) && Returns 250 ? x && If you count you will get 219The DISPLAY MEMORY LIKE x command outputs the correct number of characters to the screen.
Keywords : FxprgGeneral VFoxMac vfoxwin Version : MACINTOSH:3.0b;WINDOWS:3.0,3.0b,5.0,5.0a Platform : MACINTOSH WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |