17.04.2014 Views

InduSoft Web Studio - InduSoft Corporation

InduSoft Web Studio - InduSoft Corporation

InduSoft Web Studio - InduSoft Corporation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

Tutorial training – Revision B – Sep/10/2000<br />

© Copyright <strong>InduSoft</strong> Ltd. 2000<br />

Examples to access the application database<br />

To read a value in the database, use the tag name directly.<br />

Example 1:<br />

In the following script line, the X tag will receive the sum of two tags, level and temp:<br />

Example 2:<br />

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> allows you to read and write in the tags using references or pointers. A tag<br />

used as pointer to another tag can be declared in two ways: as a string (a pointer to an undefined<br />

type) or as a pointer of a specific kind (recommended).<br />

In Figure above, the pointer_default is a variable of the string type that is a pointer. The variable<br />

@pointer_to_integer is a pointer to integer values.<br />

NOTE: The syntax @tag allows a tag to access another by reference.<br />

NOTE: Any tag declared as a string can be used as an indirect tag (pointer).<br />

Operators<br />

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> supports all the following operators.<br />

Arithmetic operators<br />

+ addition<br />

- subtraction<br />

* multiplication<br />

/ division<br />

> greater than<br />

< less than<br />

Page 48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!