In the Advanced Script dialog box, on the Pascal Script File tab, there is a Check Code button. This checks for simple syntax errors, but it can't detect complex errors. When you run the report, if there's an error, a dialog box displays with as much information as possible.

This tells you what to fix in the code. In the example above, the program tells you it expected to read a semicolon (;) on line 38, character 10.

Common Problems

The following are a few things you need to be aware of in scripting: