BUG: GETFONT Causes Error on Empty Fontname (189725)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

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.
				

Modification Type:MajorLast Reviewed:12/11/1999
Keywords:kbbug KB189725