Skip to main content
Version: Next

EXECUTE METHOD

EXECUTE METHOD ( methodName {; result {; param}}{; param2 ; ... ; paramN} )

ParameterTypeDescription
methodNameTextName of project method to be executed
resultVariable, *Variable receiving the method result or * for a method not returning a result
paramExpressionParameter(s) of the method

Description

The EXECUTE METHOD command executes the methodName project method while passing any parameters in param1...paramN. You can pass the name of any method that can be called from the database or the component executing the command.

In result, you can pass a variable which will receive the result of the execution of methodName (value placed in $0 inside methodName). If the method does not return a result, pass * as the second parameter. If the method does not return a result and does not require any parameters to be passed, pass only the methodName parameter.

The execution context is preserved in the called method, which means that the current form and any current form event remain defined.

If you call this command from a component and pass a method name belonging to the host database in methodName (or vice versa), the method must have been shared (“Shared by components and host database” option, in the Method properties).

System variables and sets

If this command is executed correctly, the system variable OK is set to 1; otherwise, it is set to 0.

See also

EXECUTE FORMULA

Properties

Command number1007
Thread safe
Modifies variablesOK