Using the Data Watch Window
372 SPU 780 01EMAN May 2002 197
scGetText
(TextIndex) This retrieves internal PRWX32 text strings. Usually you should use a literal text
string ("Hello") instead of this function.
scAddBitDisplay
(BitDisplayName
, GridNumber,
GridRow,
LineState,
Editable)
This will add an ellipsis button to the specified Grid on the specified Row. This button
activates a Bit Display dialog that gives detailed bit-by-bit descriptions and editing
capabilities.
scAddBitInfo
(BitDisplayName
, BitNumber,
BitDescription)
This adds a bit description to the contents of a specified Bit Display created with
’scAddBitDisplay’.
Variable Type Variable Description
TextIndex Integer The number of the internal text string you wish to
retrieve.
Variable Type Variable Description
BitDisplayName String This is a name to be used to identify this particular
display. A script may create numerous different Bit
Displays.
GridNumber Integer This is the Grid’s 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.
LineState String A string of 16 numeric characters. The first
character is the MSB. Each character may be one
of:
"0" - No Line
"1" - Horizontal Stub
"2" - Full Line
"3" - End Stub
Editable Boolean Set to "True" to enable bit editing. Set to "False" to
make the display read only.
Variable Type Variable Description
BitDisplayName String This is a name to be used to identify this particular
display. See ’scAddBitDisplay’.
BitNumber Integer The number from 1 to 16 of the bit to add the
description to. 1 = LSB.
BitDescription String The description text to add.