"SYNTAX ERROR" Correction for QuickBASIC PrintScreen Example (47891)



The information in this article applies to:

  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0

This article was previously published under Q47891

SUMMARY

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.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB47891