The Script Editor consists of following components (the screen shot is from a Valuation Scenario Formula Table Editor -- System Formulas do not include the numeric grid):
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 150 by 100 that you can refer to in your
script (for Formula Tables only).
Text Editor
You can use this color-coded text editor to edit your script text. Keywords, functions (built-in and vendor-provided) and numbers are displayed in colors text. The list of built-in functions can be accessed with a right-click in the editor.
You have 3 ways to set/remove a breakpoint on the current line where the cursor stays. The line will be marked by a red dot in the selection margin (grey strip at the left edge of the text panel).
You can also clear all breakpoints from the main menu "AXIS Script / Clear all breakpoints".
When you have finished editing, the Script Editor will check the syntax of the script by doing test compilation before it is saved. If it finds out a syntax error, it will give you the detailed information (including error message, a piece of text and the line number, etc.). You can also compile the script from "AXIS Script / Compile" menu. The compilation is only for syntax checking and all scripts will be re-compiled during run-time.
Once the script has been compiled successfully, all breakpoints in this script will be validated and invalid ones will be removed silently. Valid breakpoints will be saved along with the script and will take effect when this script is executed next time.
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.
Numeric Grid (Formula Tables Only)
A numeric grid of 150 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)
Layout Gallery
The list window resides in a dockable control bar. You can make it docking or floating, resize it or move it around. You can also use the splitter bar to change the vertical ratio of the text editor and the grid.
AXIS provides a "Layout Gallery" with some pre-defined layouts that you can select from. You can access this gallery from "Layout Gallery" button on the dialog bar.
Note: This screen capture is from a Formula Table. The System Formula layout gallery is similar but does not include the grid.
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.