Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Naming conflicts between local variables and tags

  • Last UpdatedJul 23, 2024
  • 1 minute read

You can declare a local variable with the same name as an existing tag. However, when you refer to that name in a script, the local variable always takes precedence over the tag. For example, assume you have an existing Integer tag called "iTag," and you run the following script:

DIM iTag as Integer;

iTag = 20;

In this scenario, the value assignment writes a value to the local variable only. The value of the tag with the same name remains unchanged.

Related Links
TitleResults for “How to create a CRG?”Also Available in