omron — Using Indirect Tags

About Tags and the Project Database Indirect Tags Indirect tags "point" to other database tags (including class-type tags). Using indirect tags can save development time because they keep you from having to create duplicate tags (and the logic built into them). You create an indirect tag from any string-type tag simply by typing the @ symbol in front of the tag name @ TagName . • To reference a simple tag, assume the strX tag (a string tag) holds the value "Tank" , which is the name of another tag, then reading from or writing to @strX provides access to the value of the Tank tag.

• To reference a class-type tag and member, you simply create a string tag that points to the class tag and the member. For example, if a tag strX (a string tag) holds the value "Tank.Level" , which is the name of the class tag, then reading from or writing to @strX provides access to the value of the Tank.Level member. • You can also point directly to a class-type tag member; by identifying a class-type that points to a class member. For example: to access the Tank.Level member of the class, you must store the "Tank" value within the strX tag and use the syntax, @strX.Level . Page 58