Introduction to BASIC Scripting

The BASIC Scripting engine is designed to extend the functionality available in the primary AML language. AML language is easy to use, drag-and-drop, and very robust; however, there may be occasions when it is necessary to use BASIC scripting to access advanced objects or increase execution time. All functions, instructions and definitions are designed to be Visual BASIC for Applications (VBA™ Microsoft) compatible. The BASIC language is used for expressions inside AML task steps, and for Multi-line BASIC scripts.

BASIC Expressions

BASIC scripting functions can be used to return data inside of an action parameter by surrounding a valid expression with percent signs. This is called an expression.

Example:

%left(varname,2)%

Multi-line BASIC Scripts

A BASIC script may be executed by using the BASIC Script action which allows creation of multi-line BASIC compatible scripts.

When to use BASIC scripts:

  • To access the Windows API

  • To access COM objects, OLE objects, ActiveX objects

  • When fast execution time is a priority

  • Advanced File/Read/Write/Seek operations

  • Advanced text parsing

See Also:

Basic Scripts and Custom Functions | The BASIC Language Grouped by Type | More on Operators | Order of Precedence | Extended Functions