Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference

[Contents][Glossary][Index][Back][Next]

3.5 Variables and constants

Variables and constants are typical data. The values of variables may be changed, and the values of constants cannot be changed.

To use variables or constants, you have to declare them only once in the DEFINE section in the AIT file. The name of each variable or constant can have a maximum of 64 characters and must begin with any alphabetic character (A-Z). You cannot use special characters other than an underscore (_). The alphabetic characters are not case sensitive.

You should use easy-to-understand variable and constant names that indicate the roles or meanings of them. You must not use any keywords, label names, and macro names as variable names.

Organization of this section
(1) Example of variables
(2) Example of constants

(1) Example of variables

integer LoopCount;
string CountryName;
bool answer;
float r_nTimeOut;
integer ABC;
integer abc;     //Disabled as the variable is redefined.

In the above example, integer means that the listed variable is the integer type. In other words, LoopCount is an integer, while CountryName is a character string.

(2) Example of constants

const integer OK_END = 0;       //DM_RTN:OK_END
const integer NG_END = -1;      //DM_RTN:NG_END
const integer SET_SLEEP_TIME = 2;