Correction to ForeColor ToolBox Example (60426)



The information in this article applies to:

  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0

This article was previously published under Q60426

SUMMARY

The ForeColor Toolbox example on Page 512 of the "Microsoft QuickBASIC for Apple Macintosh: Language Reference" for Microsoft QuickBASIC Version 1.00 for the Apple Macintosh uses the wrong type for the color parameter. The example uses a normal (2-byte) integer instead of a long (4-byte) integer (denoted by the "&" suffix). The argument description correctly lists the parameter as a long integer ("COL&").

The incorrect example on Page 512 is as follows:
   TrapNo% = &HA862
   col% = 341
   ToolBox "P", TrapNo%, (col%)
				
This should be changed to use long integers as follows:
   TrapNo% = &HA862
   col& = 341
   ToolBox "P", TrapNo%, (col&)
				

Modification Type:MinorLast Reviewed:1/9/2003
Keywords:KB60426