Reference Guide to AXIS Script Statements & Events
in AXIS Users Guide - AXIS Script

The following table contains an alphabetical list of all supported statements and events in AXIS Script language. Please follow the underlined link to get more details on a specific statement.

Statement Name Description
AppActivate Activates an application.
Beep Sounds a tone through the computer's speaker.
Call Activates an AXIS Script Subroutine called name or a DLL function with the name name. The first parameter is the name of the function or subroutine to call, and the second is the list of arguments to pass to the called function or subroutine.
ChDir Changes the default directory.
ChDrive Changes the default drive.
Close Closes active file.
Const Assigns a symbolic name to a constant value.
Declare The Declare statement makes a reference to an external procedure in a Dynamic Link Library (DLL).
Dim Allocates storage for and declares the data type of variables and arrays in a module.
Do ... Loop Repeats a group of statements while a condition is true or until a condition is met.
End Ends a program or a block of statements such as a Sub procedure or a function.
Erase Reinitializes the elements of a fixed array.
Exit Exits a loop or procedure.
For Each ... Next Repeats the group of statements for each element in an array of a collection.
For ... Next Repeats the execution of a block of statements for a specified number of times.
Function Declares and defines a procedure that can receive arguments and return a value of a specified data type.
Get Reads from a disk file into a variable.
Global The Global Statement must be outside the procedure section of the script. Global variables are available to all functions and subroutines in your program.

GoSub ... Return

Branches to and returns from subroutines.
GoTo Branches unconditionally and without return to a specified label in a procedure.
If ... Then ... Else Allows conditional statements to be executed in the code.
Input # Input # Statement reads data from a sequential file and assigns that data to variables.
Kill Kill will only delete files.
Let Let assigns a value to a variable.
Line Input # Reads a line from a sequential file into a String or Variant variable.
MkDir Creates a new directory.
MsgBox Displays a message in a dialog box and waits for the user to choose a button.
Name Changes the name of a directory or a file.
On Error Enables error-handling routine and specifies the line label of the error-handling routine.
Open Opens a file for input and output operations.
Option Base Declares the default lower bound for array subscripts.
Option Explicit

The Option Explicit statement is unavailable in AXIS Script. (It has already been turned on by GGY to reduce errors). Therefore you must declare any variable that will be used in your AXIS Script.

Print # Writes data to a sequential file.
Randomize Used to Initialize the random number generator.
ReDim Used to declare dynamic arrays and reallocate storage space.
Rem Used to include explanatory remarks in a program.
RmDir Removes an existing directory.
Seek Seek statement sets the position in a file for the next read or write.
Select Case Executes one of the statement blocks in the case based on the test variable.
Set Assigns an object to an object variable.
Static Used to declare variables and allocate storage space.
Stop Ends execution of the program.
Sub Declares and defines a Sub procedures name, parameters and code.
Timer (Event) Timer Event is used to track elapsed time or can be display as a stopwatch in a dialog.
Type Defines a user-defined data type containing one or more elements.
While ... Wend While begins the while...Wend flow of control structure. Condition is any numeric or expression that evaluates to true or false. If the condition is true the statements are executed.
With The With statement allows you to perform a series of commands or statements on a particular object without again referring to the name of that object.
Write # Writes and formats data to a sequential file that must be opened in output or append mode.