Microsoft KB Archive/45174

= ToolBox ForeColor &quot;TYPE MISMATCH&quot; Using COL% Instead of COL& =

Article ID: 45174

Article Last Modified on 11/21/2006



This article was previously published under Q45174



SUMMARY
The following is a correction for Page 512 of the &quot;Microsoft QuickBASIC for the Apple Macintosh: Users Guide.&quot; Under the ToolBox routine ForeColor, the example given will produce a &quot;TYPE MISMATCH&quot; error because COL% (a short integer) is the wrong type. It should be COL&, a long-integer variable.



MORE INFORMATION
The following is a complete, corrected example to invoke the ForeColor ToolBox trap: ToolBox &quot;I&quot; TrapNo% = &HA862 col& = 341 ToolBox &quot;P&quot;, TrapNo%, (col&) PRINT &quot;This text should be green.&quot;

Additional query words: MQuickB

Keywords: KB45174

-

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

© Microsoft Corporation. All rights reserved.