Microsoft KB Archive/58822

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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

SUMMARY

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:

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

It should be changed to read as follows:

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


Additional query words: MQuickB

Keywords: KB58822