Syntax Checking

To manually check the syntax, click the 'Check' button in the toolbar.

When you save a script, the Script Editor automatically checks the script's syntax. If the Editor finds a syntax problem, it provides a description and location for the error. Because the source of the error may not lie on the flagged line, you should always check the lines adjacent to the flagged location. Mismatched parentheses and missing delimiters/operators on the preceding lines are a very common cause of errors.

Because JavaScript is a weakly-typed language, it is not possible for the Editor to check for correct variable usage. For example, the syntax checker cannot detect whether a script references a non-existent variable. However, this kind of error will be reported in the Console window when you preview the report in Style Studio. See Script Debugging for more information about using the Console window.

See Also

Editing Script, for information on how to access the Script Editor.

Basic Editing Functions, for information on the Script Editor toolbar.

Script Debugging, for tips on preventing and trapping script errors.

<< Fixed Value Selection © 1996-2013 InetSoft Technology Corporation (v11.5) 2.2.4 Basic Editing Functions >>