Methods

<< Click to Display Table of Contents >>

 

Methods

The next syntax exemplifies a method call that does not need parameters.

Application.GetObject("<object>").<method>

 

In this case, <object> is the name of an object and <method> is the name of a method.

If a method accepts parameters, use the next syntax.

Application.GetObject("<object>").<method>(<parameter>)

 

In this case, <parameter> is the name of a parameter to pass to that method. When there is more than one parameter, use commas to separate them.

If a method returns a result that users want to store, then the parameters must be placed between parentheses, according to the next example.

<V> = Application.GetObject("<object>").<method>(<parameter>)

 

In this case, <V> is a variable that receives that method's result.

Was this page useful?