Setvaluebyindex, Getvaluebyindex, Setbytesvalue – HP NonStop G-Series User Manual
Page 311

setValueByIndex
setValueByIndex(String name, int index, String value)
name
The name of the data element.
index
The index of the data element, starting from 0.
value
The string value for the data element.
Usage Set the string value of a data element associated with a name and an index.
getValueByIndex
String getValueByIndex(String name, int index, String defval)
name
The name of the data element
index
The index of the data element, starting from 0.
defval
The default value if the data element does not exist.
Returns The string value of the data element or the default value.
Usage Get the string value of a data element associated with a name and an index. Most output
data, except carray (octets) data type, are automatically converted to String. If there is a
type-cast error, the default value will be returned.
setBytesValue
setBytesValue(String name, byte value[])
name
The name of the data element.
value
The byte value for the data element.