"Type Mismatch" Using Boolean Arguments in TOOLBOX CALL (32728)
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 "TYPE MISMATCH" error will occur at run time.
For more information on making calls to TOOLBOX routines, please
refer to Pages 418-430 of the "Microsoft QuickBASIC for the Apple
Macintosh: Reference" manual.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB32728 |
|