Microsoft KB Archive/47891: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "&" to "&")
 
Line 45: Line 45:


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
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
<pre class="codesample">  max&amp; = (4+(SYSTEM(6)+1)*2*INT(SYSTEM(5)+16)/16))/4+1
<pre class="codesample">  max& = (4+(SYSTEM(6)+1)*2*INT(SYSTEM(5)+16)/16))/4+1
                 </pre>
                 </pre>
and it should read as follows:
and it should read as follows:
<pre class="codesample">  max&amp; = (4+(SYSTEM(6)+1)*2*INT((SYSTEM(5)+16)/16))/4+1
<pre class="codesample">  max& = (4+(SYSTEM(6)+1)*2*INT((SYSTEM(5)+16)/16))/4+1
                                 ^
                                 ^
                                 |
                                 |

Latest revision as of 14:14, 21 July 2020

Knowledge Base


"SYNTAX ERROR" Correction for QuickBASIC PrintScreen Example

Article ID: 47891

Article Last Modified on 1/8/2003



APPLIES TO

  • Microsoft QuickBasic Compiler for 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.


Additional query words: MQuickB

Keywords: KB47891