setValue
Set the value of a parameter for the provided Object ID.
Syntax
params.setValue (OID, Index, Value);
Parameters
Parameter |
Type |
Required |
Description |
OID |
String |
Yes |
Object ID of object of interest. |
Index |
Integer |
Yes |
Array parameter index. If the parameter is not an array parameter, use an Index of 0. In most cases, enter 0 as the Index. |
Value |
Object |
Yes |
New value for the OID. |
Returns
N/A
Example 1
// Set the parameter to 3: params.setValue (0x12,0,3);
Example2
// Set the value to 3 greater than it was.
var data = getValue(0x12,0); params.setValue (0x12,0,data + 3);