CALL_METHOD
Syntax | Return Value | Arguments | Keywords | Version History | See Also
The CALL_METHOD function or procedure calls the object method specified by Name, passing any additional parameters as its arguments.
Note
CALL_METHOD can also be used as a function or a procedure.
Although not as flexible as the EXECUTE function, CALL_METHOD is much faster. Therefore, CALL_METHOD should be used in preference to EXECUTE whenever possible.
Syntax
Result = CALL_METHOD(Name, ObjRef, [, P1, ..., Pn])
or
CALL_METHOD, Name, ObjRef, [, P1, ..., Pn]
Return Value
Returns the results generated by the named function method when applicable.
Arguments
Name
A string containing the name of the method to be called. This argument can be a variable, which allows the called method to be determined at runtime.
ObjRef
A scalar object reference that will be passed to the method as the Self argument.
Pi
The arguments to be passed to the method given by Name. These arguments are the positional and keyword arguments documented for the called method, and are passed to the called method exactly as if it had been called directly.
Keywords
None.
Version History
See Also
CALL_FUNCTION, CALL_PROCEDURE, EXECUTE