Invoking a Method |
DEVELOPER |
Invoking a Method
|
|
Purpose |
To execute a method (procedure) on an object, and optionally return a value. |
Syntax |
Variable = ObjectReference.MethodName(arguments) |
Operation |
Variable - Only certain methods require this element (see the description of each method). If required, it is an alpha or numeric data element, depending on method. The data type must match the data type of the method. ObjectReference - Object name for the Client, Cycle, Field, or Format object. It cannot be a variable and it is case sensitive. MethodName - The predefined name of a method. It cannot be a variable and it is not case sensitive. Arguments - The values to be passed to the method. There may be zero or more arguments, with a comma separator between arguments. The parentheses are mandatory. |
Remarks |
Various methods apply to different Object Types. See descriptions of individual methods for valid methods for each Object Type. The argument list depends on the method and may be empty. Similarly, the returned value may not be defined for some methods. |
Example |
To display the current data value in the field with the Tag Name of balance: Balance.Refresh() |
Topic ID: 510103