WiseScript Editor Reference
18
Project Settings for Script Support
Compiler variables are surrounded by % characters in the script. (Example:
%_DEBUG_%)
You can change the value of compiler variables when you compile.
The sample script Compvar.wse uses compiler variables. For details on sample scripts,
see ScriptHelp.htm in the Samples subdirectory of this product’s installation directory.
To add a compiler variable
1. Select Project Settings > Compiler Variables page.
2. Click Add.
The Compiler Variable Settings dialog box appears.
3. Complete the dialog box:
Variable Name
Enter the name of the compiler variable. By convention, compiler variables
begin and end with an underscore character (_). Although this convention is not
enforced, it helps distinguish compiler variables from regular variables in
scripts.
Default Value
Enter the default value of the compiler variable.
Description
Briefly describe how the variable is used. This appears on the dialog box when
you are asked to choose a value for the variable.
Value List
For compiler variables that are displayed as a list, enter a list of valid values,
each on a separate line.
Data Entry Type
Select the method to use to enter data for the compiler variable.
Do Not Prompt for Value
If this is marked, you are not prompted for the value of this variable when
compiling even if Prompt for Compiler Variables is marked on the Compiler
Variables page. Mark this for variables that you do not expect to change
frequently.
4. Click OK.
5. On the Compiler Variables page, mark one of the following:
Compiling from Command Line
Mark this to be prompted for the value of compiler variables when you compile
from the command line. Use this for automated build processes. You can specify
compiler variable values by entering the value directly on the command line or
by storing the values in a text file.
See
Command-Line Options
on page 165.
Compiling from Within Wise
Mark this to be prompted for the value of compiler variables when you compile
from WiseScript Editor. If you mark this, then a Select Compile Settings dialog
box appears during compile and lists this compiler variable’s values. A dialog
box appears for each compiler variable you define. Value length is limited by the
amount of text that displays on the dialog box. The Do not prompt for value
check box on the Compiler Variable Settings dialog box overrides this setting.