VDW Script Editor
Script
The script edit box is the main region in VDW; it displays the script and
allows interaction with it.
In the script edit box the script you are working on is displayed. The
numbers to the left of each line indicate that line number. This can be
useful if you have errors reference by line number, as you can simply
navigate right to where the error is. The array of buttons on the right
side of the Script region provide methods of working with your code.
Lines in the Script region are selectable, and multiple lines can be
selected by clicking and dragging or by holding shift and selecting
another line. Your selection determines different things within the
editor. The variables displayed in the Variables region are the variables
defined for your selected line. Code you insert using the Code Snippets
region is inserted in the line after your selection. Also, the code
affected by the buttons is the code that you currently have selected.
Code Snippet Menu
The Code Snippet Menu region is where code is chosen to be entered
into the script. Using the code snippets is the only way to write scripts.
The Code Snippet Menu region displays all available snippets and allows
you to configure snippets and insert them into the script. In list
view, all snippets are shown in alphabetical order. In group view, they
are grouped into categories based on what they do. To configure a
snippet and insert it at the line currently selected in the Script region,
double click on its name.
Not all snippets can be inserted at all locations of a script. If a snippet
is not valid in the current selected location of the script, it will be
greyed out and it will not be selectable.
Handling Errors
The Variables region shows a list of variables defined in the current
scope and their types.
Errors are displayed in a list in the Errors region ordered by the line
of the script in which they occur. VDW was designed to keep errors
to a minimum, but unfortunately they still occur. Errors often occur
when editing snippets that have already been inserted. For example,
deleting or commenting out a section of code that is depending on
later will result in errors.
In order to make fixing errors as easy as possible, double-clicking on
an error in the Errors region will cause the Script window to jump to
that line of the script so you can investigate the source of the error
and determine the solution.