PreviousNextIndex

SET-CALLBACK-PROCEDURE( ) method

Associates an internal procedure with an ABL callback event.

Return type: LOGICAL

Applies to: Buffer object handle, Procedure object handle, ProDataSet object handle, Query object handle

Syntax
SET-CALLBACK-PROCEDURE (callback-name,internal-procedure  
              [ , procedure-context ]) 

callback-name
internal-procedure
procedure-context

This method returns FALSE if the callback-name is not valid or if procedure-context is not a valid handle; returns TRUE otherwise. If this method is specified but cannot be invoked, or it fails, no procedure will be executed as part of the callback event.

If this method is called multiple times, the new values passed replace the previously set values.

To remove the callback procedure associated with a Web service procedure, invoke this method with a valid callback-name and an empty string, "", for the internal-procedure. The AVM will not generate an error if an attempt is made to remove a callback procedure and a callback is not associated with the callback.

For more information on events, see the "Handle-based Object Events Reference" section.

See also: APPLY-CALLBACK( ) method, GET-CALLBACK-PROC-CONTEXT( ) method, GET-CALLBACK-PROC-NAME( ) method


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex