Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products including ENVI, IDL, and ENVI LiDAR, and solutions developed by Exelis VIS at www.exelisvis.com.


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



Comments


This page has no comments yet. Be the first one!

© 2013 Exelis Visual Information Solutions