
2.ADDING SCREENS USER CUSTOMIZE B-75074EN/04
- 406 -
- Setting
Value()
Be sure to specify this argument. Specify a two-dimensional
array of character string type for storing read machine
settings. Before calling this method, allocate
two-dimensional array elements.
Example: ReDim Value(0 to obj.mDispMachine – 1,
0 to obj.pMachineItemCount – 1)
The array element number is to start with 0.
On the setting screen, the maximum number of machines
dynamically changes. In such a case, allocate an area of up
to pMaxMachine-1 instead of mDispMachine-1. On the
application screen, the maximum number of machines does
not change, so that mDispMachine - 1 is sufficient.
- Explanation
When this method has been executed successfully, machine settings are
written into Value(). The first dimension of a two-dimensional array
represents machines and the other dimension represents the settings of
each machine. Machine information for the number of machines set in
the public variable mDispMachine is set in the array. See the properties
starting with pMachine… for the meaning of each array element.
- Return value
A Boolean value is returned. When the processing is successful, True is
returned. When the processing fails, False is returned. When the
processing fails, the cause is set in the public variable mErrorMessage.
ScreenIdRead
Reads the screen master.
- Syntax
object.ScreenIdRead Value()
- Setting
Value()
Be sure to specify this argument. Specify a two-dimensional
array of character string type for storing read screen
information. Before calling this method, allocate
two-dimensional array elements.
Example: ReDim Value(0 to 1, 0 to obj.mScrIdCount – 1)
The array element number is to start with 0.
- Explanation
When this method has been executed successfully, set screen
information is written into Value(). The first dimension of a
two-dimensional array represents the settings of each screen. In the first
item (0), a screen ID is set. In the second item (1), a cim file name is set.
The second dimension represents types of screens. Screen information
items as many as the value set in the public variable mScrIdCount are
set in the array.