%RW_METHOD

Overload ReportWriter methods

WSupported on Windows
USupported on Unix
VSupported on OpenVMS

 

status = %RW_METHOD(event_method_pair[, ...])

status

Either 0 (no error occurred) or a handle to error data as defined in reports.def.

event_method_pair

The ReportWriter subroutine to overload. One of the following:

M_LIBRARY[, mylibrary]

Set the library to load subsequent method routines from.

M_RW_PRTOPEN, method

Open a file/printer for printing.

M_RW_PRTCLOSE, method

Close the output file/printer.

M_RW_ENV, method

Obtain contents of environment field.

M_RW_GETVAL, method

Return user-defined data type value.

M_RW_USAGE, method

Determine user-defined data type usage.

M_RW_LSTINFO, method

Get information about highlighted list item.

M_RW_INITBLD, method

Initialize the report building phase.

%RW_METHOD “registers” your overloaded subroutine so that ReportWriter will recognize it. You must call %RW_METHOD from within an RW_INIT_METHOD routine.