Microsoft KB Archive/47891

From BetaArchive Wiki
Knowledge Base

"SYNTAX ERROR" Correction for QuickBASIC PrintScreen Example

Article ID: 47891

Article Last Modified on 1/8/2003


  • Microsoft QuickBasic Compiler for Macintosh 1.0

This article was previously published under Q47891


On Page 172 of the "Microsoft QuickBASIC for Apple Macintosh: Language Reference" manual, the PrintScreen example is missing a left parenthesis, "(", on line number 13. The line reads

   max& = (4+(SYSTEM(6)+1)*2*INT(SYSTEM(5)+16)/16))/4+1

and it should read as follows:

   max& = (4+(SYSTEM(6)+1)*2*INT((SYSTEM(5)+16)/16))/4+1
                        added missing parenthesis

If the program is entered as listed in the manual, a "SYNTAX ERROR" message is generated during program execution.

Additional query words: MQuickB

Keywords: KB47891