Important: The information in this document is obsolete and should not be used for new development.
GetTrapAddress
TheGetTrapAddressfunction is obsolete and is documented here only for the sake of completeness.
FUNCTION GetTrapAddress (trapNum: Integer): LongInt;
trapNum- Toolbox A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number for you.
DESCRIPTION
TheGetTrapAddressfunction was used when both the Operating System trap addresses and Toolbox trap addresses were located in the same trap dispatch table. Today, any system software routine with the trap number$00to$4F,$54, or$57is drawn from the Operating System dispatch table; any other software routine is taken from the Toolbox dispatch table.
- WARNING
- The
GetTrapAddressfunction is not supported under Power PC.![]()
- WARNING
- The
GetTrapAddressprocedure ignores the high-order bits in thetrapNumparameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. TheGetTrapAddressprocedure is not reliable on any computer today.![]()