Microsoft KB Archive/58821

= Correction for FillArc ToolBox Example on Page 511 &quot;Reference&quot; =

Article ID: 58821

Article Last Modified on 11/21/2006



This article was previously published under Q58821



SUMMARY
The FillArc ToolBox example on Page 511 of the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference&quot; is incorrect. The ToolBox statement does not use the rectangle parameter (r%), and the example references the pattern parameter incorrectly (pat%).

This information applies to Microsoft QuickBASIC Version 1.00 for the Apple Macintosh.



MORE INFORMATION
The incorrect example on Page 511 is as follows: TrapNo%=&HA8C2 Toolbox &quot;P&quot;, TrapNo%, (startAngle%), (arcAngle%), pat% It should read as follows (note: the underscore is for display purposes only; VARPTR(pat%(0)) should be on the same line as the ToolBox statement): TrapNo%=&HA8C2 Toolbox &quot;P&quot;, TrapNo%, VARPTR(r%(0)), (startAngle%), (arcAngle%),_ VARPTR(pat%(0)) The following is a complete example using the FillArc ToolBox call: ToolBox &quot;i&quot;                 'Initialize toolbox and variables DIM r%(3), pat%(3) SetRect r%(0),10,10,100,100 pat%(0) = &H5555            'Make checker pattern pat%(1) = &HAAAA pat%(2) = &H5555 pat%(3) = &HAAAA startAngle% = 10 arcAngle%  = 90 TrapNo%=&HA8C2 Toolbox &quot;P&quot;, TrapNo%, VARPTR(r%(0)), (startAngle%), (arcAngle%),_ VARPTR(pat%(0)) 'Should be on Toolbox line

Additional query words: MQuickB

Keywords: KB58821

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.