Microsoft KB Archive/32728

= &quot;Type Mismatch&quot; Using Boolean Arguments in TOOLBOX CALL =

Article ID: 32728

Article Last Modified on 11/21/2006



This article was previously published under Q32728



SUMMARY
Some TOOLBOX routines require boolean arguments; however, boolean is not an inherent data type of BASIC. In Macintosh QuickBASIC, an integer variable may substitute for a boolean under certain constraints. The integer variable must be initialized to one of two values, -1 (true) or 0 (false). If the variable is not initialized in the prescribed manner, a &quot;TYPE MISMATCH&quot; error will occur at run time.

For more information on making calls to TOOLBOX routines, please refer to Pages 418-430 of the &quot;Microsoft QuickBASIC for the Apple Macintosh: Reference&quot; manual.

Additional query words: MQuickB

Keywords: KB32728

-

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

© Microsoft Corporation. All rights reserved.