Introduction to Delegate parts

A Delegate part provides a model for a function.

A Delegate part is similar to a function pointer in COBOL or C. When you declare a variable, you specify the Delegate part name as a type, just as you specify a Record part name when you declare a record variable. The variable is initialized, or assigned the name of a matching function with the same signature (parameter and return type definition) as the Delegate part. You can specify a delegate variable in the place of the function name on a function invocation. Then you can choose the actual function to be called dynamically.

You can use Delegate parts as part of a scheme to invoke functions dynamically. Predefined Delegate parts are used in Rich UI.

The Delegate part does not have properties. For further details, see “Delegate part.”


Feedback