Method Expressions

Method expressions are a different type of expression. Unlike standard expressions that calculate a value, method expressions call a method on an item in the database to perform an action. For example, a method expression can be used to call the override method on a point.

There are many methods available for calling. You can use the database schema to find out which methods are available for each database item (see Working with the Database Schema in the Geo SCADA Expert Guide to the Database).

Method expressions are used by:

The following grammar is an extension of the grammar for Standard Expressions :

<method-expression> ::= <method-name> "(" [ <expression> { "," <expression> } ] ")"

Where:

The main difference with method expressions is that you start the expression with the <method-expression> instead of a <simple-expression>. The arguments for the method expression are standard expressions and use the grammar described in Standard Expressions .

Example:

The following expression is used to perform an override on a point.

Override(65)

The expression begins with the name of the method—the Override method.

There is a single argument: 65. This means that when the method is executed, it overrides the value of the point to 65.


Disclaimer

Geo SCADA Expert 2020