5.3 Write method

Changes a UPS_ID value.

5.3.1 Syntax

object.Write(
   UPS_ID As Integer, 
   Value As String)

5.3.2 Parameters

UPS_ID

The ID of the APC parameter.

Value

The value to be written.

5.3.3 Return Values

Integer. If successful, returns the passed value.

5.3.4 Example

This example changes the FIRMWARE_REVISION identifier to Revision 1.1 and reads it.

Const FIRMWARE_REVISION = 4 
set APC = CreateObject("UCX:APC.PowerSupply") 
Apc.Write(FIRMWARE_REVISION, "Revision 1.1")
Value=Apc.Read(FIRMWARE_REVISION)
print Value

5.3.5 See Also