IDL

CALL_METHOD

CALL_METHOD

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


5.1

Introduced

See Also


CALL_FUNCTION, CALL_PROCEDURE, EXECUTE



Notes


This page has no user notes yet. Be the first one!


This information is not subject to the controls of the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). However, it may be restricted from transfer to various embargoed countries under U.S. laws and regulations.
© 2014 Exelis Visual Information Solutions