Function SetData( ByVal deviceHnd&, ByVal paramID&, ByVal newValue ) as Long
Purpose: Reads the value of a network datum into a program variable.
Works in: OneLiner and Power Flow.
Parameters:
deviceHnd [in] data object handle
paramID [in] parameter ID code (must be labeled with write attribute in table 3.3)
newValue [in] new value.
Return value:
1 success
0 failure
Remarks: Data type of variable newValue must agree with that of the parameter being updated. See Table 3.3 for a full listing of equipment parameters and their type.
Example:
If SetData( nSCapHnd, SC_dX, dXc ) = 0 Then GoTo HasError
If SetData( nSCapHnd, SC_dX0, dXc ) = 0 Then GoTo HasError
If SetData( nSCapHnd, SC_dR, dRc ) = 0 Then GoTo HasError
If SetData( nSCapHnd, SC_dR0, dRc ) = 0 Then GoTo HasError
If PostData( nSCapHnd ) = 0 Then GoTo HasError 'Save modified data to network database