Microsoft KB Archive/47564

= &quot;Invalid Function Call&quot; BitTst Toolbox Example Error, Page 507 =

Article ID: 47564

Article Last Modified on 11/21/2006



This article was previously published under Q47564



SUMMARY
On Page 507 in the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference,&quot; the example for the BitTst ROM Toolbox call incorrectly calls the routine with a &quot;P&quot; call type rather than a &quot;B&quot; call type as specified in the Calltype on Page 506. You will get an &quot;Invalid function call&quot; using the example as shown on Page 506.

Note that you must also always invoke the ToolBox &quot;i&quot; statement (to initialize) before you can begin to use the ToolBox statement.

The following is the correct example: a% = 0 bResult% = 0 ToolBox &quot;i&quot; TrapNo% = &HA85D bitOffset& = 3 bytePtr& = VARPTR(a%) ToolBox &quot;B&quot;, TrapNo%, (bytePtr&), (BitOffset&), bResult% IF bResult% THEN ...

Additional query words: MQuickB

Keywords: KB47564

-

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

© Microsoft Corporation. All rights reserved.