Search Order for Scripts

Whenever there is a call to execute a script, whether during startup, through the use of a form or command, or due to an event, the application uses a particular search order to locate the script file.

The search order that the application uses is as follows:

  1. Directory in which the project file is located.

  2. All directories specified by the WDIR environment variable

For a script to be considered for execution by the application, it must be located in one of the directories above, or the path and file name must be specified in the command line (see “Running a Script from the Command Line”, and “Running a Form from the Command Line”).