18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix: Built-in Scripting Language<br />

Loop functions<br />

These functions are used to implement repeating, incrementing loop within a script.<br />

For … Next<br />

Implements a For … Next loop within a Math worksheet or Command animation. The section of the script<br />

affected by the loop begins with the For() function call and ends with the Next notation. The Next notation<br />

directs back to the beginning of the loop.<br />

Function Group Execution Windows Embedded Thin Client<br />

For Loop N/A Supported Supported Supported<br />

Syntax<br />

For( numInitialValue, numFinalValue, numStep ) … Next<br />

numInitialValue<br />

The initial step (increment) of the loop.<br />

numFinalValue<br />

The final step (increment) of the loop.<br />

numStep<br />

The step (increment) of the loop.<br />

Returned value<br />

Returns the step on which the loop is currently running.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag For( 1, 5, 1 )<br />

Next<br />

Note: You must partner every For function with a Next notation. As shown in the example, you<br />

must place the Next notation in the tag field of the math script.<br />

<strong>InduSoft</strong> Web Studio Page 689

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

Saved successfully!

Ooh no, something went wrong!