Language basics

Top  Previous  Next

The scripting language is not case sensitive, thus the following script is valid:

 

scripting_rules_01

 

Arrays are 0-based.  For example, a TTable object contains an array of TColumn objects.  You can find out the number of columns using the ColumnCount method, and access each column using the Column method.  However, to iterate through each column, you need to start with an index of 0, and the last column will have an index of ColumnCount - 1.  Example:

 

scripting_rules_02

 

There are 2 kinds of loops you can use - a for loop and a repeat..until loop.

 

scripting_rules_03

 

scripting_rules_04

 

Comments come in 2 forms - inline comments and block comments.  Example:

 

scripting_rules_05