Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


18.3.4 string

The string-type is a basic data type that indicates a variable-length character string.

The keyword string allows you to declare and initialize a string-type variable or constant. You can use this keyword only in the DEFINE section. When you specify two or more variables after this keyword, use a comma (,) to delimit them.

You can declare a constant by using the keyword const in combination with the keyword string. The values of the constants declared in the DEFINE section can only be referenced, and cannot be changed in the MAIN or ERROR section.

To specify a character-string constant, you have to enclose the character string with double quotation marks ("). If you want to use a double quotation mark (") in a character string, place a single quotation mark (') immediately before the double quotation mark.

Organization of this subsection

(1) Format

DEFINE
{
    [const] string variable_name1 [= "StringValue"] [, variable_name2 [= integer_constant2]] ;
}

(2) Example of coding

DEFINE
{
    string CaptionName="Setup";  // Valid
    string ErrorText;            // Valid
}

(3) Notes