Knowledge Base

BUG: GETFONT Causes Error on Empty Fontname

Article ID: 189725

Article Last Modified on 12/11/1999


APPLIES TO


This article was previously published under Q189725

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: kbbug kbnofix KB189725