Method Call

The method call (invocation) instruction enables you to send a message to an object.

Syntax

The syntax of a method call is:

expression.method-name [(actual-parameters)];

Description

Use a method call to cause the method specified by method‑name to be invoked for the instance referred to by the expression.

If the method being called takes no parameters, the parentheses on the method call are optional.

Example

The following example shows how you can use a method call to invoke the close method.

bOK_click(button: Button) updating;
vars
begin
    beginTransaction;
        complaint.close(closeText.text);
    commitTransaction;
    unloadForm;
end;