Previous Next

HANDLER attribute
A handle to the procedure containing the SAX callbacks.
Data type:
Access:
Applies to:
The default is a handle to the procedure that contains the SAX-PARSE( ) method, or the SAX-PARSE-FIRST( ) and SAX-PARSE-NEXT( ) methods.
When SAX-PARSE( ), SAX-PARSE-FIRST( ), or SAX-PARSE-NEXT( ) executes, the SAX-reader object looks for callbacks only in the procedure whose handle is stored in HANDLER. HANDLER must be a valid procedure handle and cannot be a proxy.
Note:
Callbacks can reside within a special handler procedure file that is run persistently or within the driver procedure.
Within a procedure file, to get a handle to the procedure file, use the THIS-PROCEDURE handle. The following fragment assigns HANDLER a handle to the current procedure:
 
hSaxReader:HANDLER = THIS-PROCEDURE.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.