8. Check the Syntax of a Script

When you try to run or debug a script whose syntax has not been checked, the Program Editor first performs a syntax check automatically.

Do the following to perform a syntax check manually without running the script.

  1. Do one of the following.

Click Compile on the Application toolbar.

Click File>Compile on the Program Editor menu bar.

The Program Editor does one of the following.

Reports that no errors have been found

Displays an error message that specifies the first line in your script where an error has been found and briefly describes the nature of that error.

  1. Click the OK button or press Enter on the keyboard.

If Program Editor has found a syntax error, the line containing the error is highlighted on your display.

  1. Correct the syntax error.

  2. Repeat the procedure until you have found and corrected all syntax errors.

More information

Edit programs.