Description
Script routines and object’s methods can have parameters. Using the AddParameter
method, you can form the list of parameters to be passed to the routine or method. This method lets you append a new parameter value to the parameter list.
Declaration
InvokeSyntax.AddParameter(Value)
Value | [in] | Required | Variant | |
Result | None |
Applies To
The method is applied to the following object:
Parameters
The method has the following parameter:
Value
An expression that specifies the parameter value to be added to the call expression. Value can be any of the following:
- A numeric, string, boolean or any other “simple” value.
- An
InvokeSyntax
object that corresponds to a variable, property, routine or method expression. - A
ConditionSyntax
object that corresponds to a comparison or logical operation. - The
Sys
object, aprocess
,window
oronscreen
object, or a property of any of these objects, or the result of a method execution of any of these objects. See the Remarks section for details.
Result Value
None.
Remarks
As mentioned above, the AddParameter
method can accept the Sys
, process
, window
or onscreen
object or the return value of a member of any of these objects. In this case, you should keep in mind the following:
-
The desired object can be addressed by its fully-qualified name via the
Sys
object as well as by a custom name via theNameMapping
orAliases
object. Note, that you can only use those custom names that are specified in the NameMapping item of the user’s active project. -
The object being referenced must exist, otherwise an error will occur.