Compiling Code

The VAM includes a Compile button that performs the task of compiling scripting code into a run-time format for a selected application. When you click the Compile button, the following dialog opens to indicate the progress of the compile operation.

For the sake of speed, after the scripting code is compiled once, only new or changed scripting code will be compiled on the next occasion you click the Compile button.

In some cases, VTS may detect no changes to the application's code; in such instances, the dialog shown below opens to inform you of this occurrence.

If no change has been detected in your application's code, you may choose to perform one of the following operations:

      Recompile anyway by clicking the OK button (recommended); or

      Cancel the compile operation.

Remote or Networked Applications and Compiling

When you are working with a networked or remote application, it is highly recommended that you adopt the habit of recompiling your application prior to distributing any source files. This will enable you to detect and resolve any possible errors in the modified or added source files prior to distributing files with errors to each workstation running the application.

Compiling and Errors

In the event that VTS detects an error in your scripting code, the Compiler Error dialog opens similar to the one shown below.

As you can see from the above example, the Compiler Error dialog displays information about the detected error, including:

      The error detected;

      The path to file in which the error was detected;

      The token that prompted the compile error;

      The line in which the error was detected; and

      The column in which the error was detected.

In the event of an error, you may choose to perform one of the following operations:

      Close the Compiler Error dialog and continue to work by clicking the OK button;

      Correct the error using the Go To Error button; or

      Recompile the code using the Recompile button.

 

Topics in this section:

Script Editor