BUG: GETFONT Causes Error on Empty Fontname

ID: Q189725


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 6.0


SYMPTOMS

The following error occurs when the GETFONT function is passed an empty fontname. This is Visual FoxPro error number 11.

Function argument value, type or count is invalid.


RESOLUTION

The GETFONT function requires at least a space for the fontname:


   GETFONT(" ") 


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

The syntax for the GETFONT function is GETFONT(cFontName [,nFontSize [,cFontStyle]]). The cFontName should at least be a space.

Steps to Reproduce Behavior

In the Command window, issue the following command:

      GETFONT("") && Without a space between the quotes an Error 11 occurs. 

Additional query words: font name kbVFp600bug kbXBase kbvfp600

Keywords :
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.