Using the Data Watch Window
372 SPU 780 01EMAN May 2002 199
scAddErrorField
(GridNumber As
Variant, GridRow
As Variant)
This will create an error box that displays an error message. This box will only be
visible if an error condition is met. Condit ions are specified using the scAddError-
FieldText function. Error conditions are a particular value contained in a particular
register. A row in a grid defines this. On ly one Error Field is allowed.
scAddError-
FieldText
(DataValue As
Variant,
ErrorText As
Variant)
This adds an error condition to an error field. Any number of conditions may be
added. A condition is true is a data value equals the specified value.
scAddPages
(NumPages) This adds a Page selection control. Only one may be specified at a time. Pages are
numbered sequentially starting at one. This is useful if an instruction has a large
amount of information to display.
scAddPicklist
(ListName,
GridNumber,
GridRow)
This will add a drop-down list box to a specified Grid at a specified Row. This list will
allow the easy selection of specific data values for the associated address. Each
pick list must be identified by giving it a name.
Variable Type Variable Description
GridNumber Integer This is the Grids ID Number. See scAddGrid.
GridRow Integer The row in this grid to modify. Valid rows start at 1
and go to the maximum number of rows this grid
contains.
Variable Type Variable Description
DataValue Integer A value that corresponds to an error.
ErrorText String The error message to display.
Variable Type Variable Description
NumPages Integer The total number of pages to display.
Variable Type Variable Description
ListName String This is a name to be used to identify this particular
pick list. A script may create numerous different
pick lists.
GridNumber Integer This is the Grids ID Number. See scAddGrid.
GridRow Integer The row in this grid to modify. Valid rows start at 1
and go to the maximum number of rows this grid
contains.