Important: The information in this document is obsolete and should not be used for new development.
GetToolboxTrapAddress
You an use theGetToolboxTrapAddressfunction to access the address of a Toolbox routine, which is located in the Toolbox trap dispatch table. TheGetToolboxTrapAddressfunction is also available as theGetToolTrapAddressfunction.
FUNCTION GetToolboxTrapAddress (trapNum: Integer): LongInt;
trapNum- Toolbox A-line instruction or a trap number. If you specify a Toolbox A-line instruction, the function extracts the trap number for you.
DESCRIPTION
TheGetToolboxTrapAddressfunction returns the address of the Toolbox routine specified by thetrapNumparameter. If the desired Toolbox routine is not supported on the installed system software, theGetToolboxTrapAddressfunction returns the address of theUnimplementedprocedure. ThetrapNumparameter should contain a trap number in bits 0-9.GetToolboxTrapAddressmasks the irrelevant high-order bits. AGetToolboxTrapAddress(trapNum)function call performs the same operation as aNGetTrapAddress(trapNum,ToolTrap)function call.SEE ALSO
For more information about theUnimplementedprocedure, see page 8-29. TheNGetTrapAddressfunction is described next. For an example of how to use theGetToolboxTrapAddressfunction, see Listing 8-1 on page 8-22.