Microsoft KB Archive/58822

From BetaArchive Wiki
Knowledge Base

GetFontName ToolBox Example Correction on Page 514 "Reference"

Article ID: 58822

Article Last Modified on 11/21/2006

This article was previously published under Q58822


The GetFontName Example on Page 514 of the "Microsoft QuickBASIC for Apple Macintosh: Language Reference" is incorrect. The variables that are initialized do not match the variables in the ToolBox statement. This information applies to Microsoft QuickBASIC Version 1.00 for the Apple Macintosh.

The incorrect example from Page 514 is as follows:

   a$ = ""
   fNum% = 4
   Toolbox "P", TrapNo%, (FontNum%), FontName$

It should be changed to read as follows:

   FontName$ = ""  ' This is changed.
   FontNum% = 4    ' This is changed.
   Toolbox "P", TrapNo%, (FontNum%), FontName$

Additional query words: MQuickB

Keywords: KB58822