Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.2.1 Dim (declare a variable and allocate space)

Purpose

Declares a variable and allocates space in memory.

Syntax
Dim VarName [, VarName, ...]
Arguments
VarName

Specify the name of the variable you are defining. Comply with the variable naming conventions.

Description

A variable declared at the script level using the Dim command can be referenced within that script by all procedures. A variable declared at the procedure level can be referenced only within that procedure.

Note that a variable allocated by assignment to a variable declared or undeclared in the Do...Loop, For...Next, For...End For, or While...End loop in the script or procedure can be referenced only within the loop.

If a value is assigned to a variable that has not been declared by using the Dim command, the system automatically declares the variable, allocates a memory area, and then assigns the value.

Once declared, a variable has an Empty value.

JP1/Script version

Supported from JP1/Script 01-00.