The AXIS Script editor provides a user-friendly environment for you to edit scripts and set breakpoints. As a general purpose editor, it is currently used in both Formula Tables and System Formula Batches, and has been customized for each of them.
The screen capture above contains the following 3 sections:
1. A text editor that allows you to edit your script and set breakpoints.
2. A list of vendor-provided variables and functions. They are well-organized into separate groups, with detailed information, such as type, syntax, description, etc.
3. A numeric grid of 100 by 100 that you can refer to in your script (Note: the grid is only available in Formula Tables - it will not be shown if you are editing a system formula).
The three sections are described in more detail below.
1 Text Editor
This color-coded text editor is used to edit your script. Keywords, functions (built-in and vendor-provided) and numbers are displayed in coloured text. Right clicking in the editor will display a list of of built-in functions. See the AXIS Script and AXIS Script Debugger sections of this tutorial for more information on the script editor window.
2 Variable/Function Lists
According to how these variables and functions are used,
they are grouped into separate lists. For Formula Tables,
there are 4 lists of "Input", "Output", "Constant" and "Static",
while for System Formula Batches, they are "Input", "Action",
"Constant" and "Static".
You can read values from input variables/functions, set values through output variables/functions, select actions (in System Formula Batches), use pre-defined constants, and access static variables, which can be both read and written.
You can find the name, data type (for variables and constants), value (for constants), return type and parameter list (for functions) and description in the lists, and the overall detailed information in a light yellow window below. Right-clicking in the list window also gives you the detailed information of current variable/function. To insert the name of a variable/function into the script at the current cursor position, you can either double-click on it, or select "Insert name into Script Editor" from the right-click menu. If this is a function, you can also insert both its name and parameter list into the editor.
3 Numeric Grid (Formula Tables Only)
A numeric grid of 100 by 100 is also available in Formula Tables. You can edit it in the Formula Table Editor and use it as user-defined input data. To access it in your script, use Grid function:
Value = Grid (Row, Column)
Help Text
Pressing F1 inside the Editor will give you help on the particular type of table. There is also a "AXIS Script Help" button on the dialog bar which will provide help on the syntax and features of AXIS Script. |