| Variable Object : SetValue Method |
| Visual Basic |
|---|
Public Sub SetValue( _ ByVal setType As VariableTypeConstants, _ Optional ByVal setVal As Variant _ ) |
| Value | Description |
|---|---|
| typeCounter | Data type is an unsigned 32 bit integer that represents a counter. |
| typeCounter64 | Data type is an unsigned 64 bit integer. |
| typeEndOfMibView | End of MIB has been reached. |
| typeGauge | Data type is an unsigned 32 bit integer that represents a gauge. Use for Unsigned32 tags also. |
| typeInteger | Data type is a signed 32 bit integer. |
| typeIpAddress | Data type is a string that represents an IP Address in dot notation. |
| typeNoSuchInstance | IID does not exactly match the name of any accessible variable. |
| typeNoSuchObject | IID prefix does not match prefix of any accessible variable. |
| typeNSAPAddress | Data type is a byte array that represents an NSAP Address. |
| typeNull | Data type is NULL. Used for requests. |
| typeObjectID | Data type is a string that represents an object identifier. |
| typeOctetString | Data type is a byte array interpreted as an ASCII string. |
| typeOpaque | Data type is a byte array usually interpreted as a binary blob. |
| typeTimeTicks | Data type is an unsigned 32 bit integer that represents time ticks |
| typeUInteger | Data type is an unsigned 32 bit integer. Obsolete. |
The following table outlines the data types that can be used to set each SNMP data type:
| SNMP Data Type | Compatible environmental data type | VB6 Notes |
|---|---|---|
| OctetString | String (will be converted with a UTF-8 Encoder to a Byte array) or Byte array | |
| Opaque | String (will be converted with a UTF-8 Encoder to a Byte array) or Byte array | |
| NSAP | String (will be converted with a UTF-8 Encoder to a Byte array) or Byte array | |
| Counter | String or numerical type | For values larger than a Long can hold, populate with a string. |
| Counter64 | String or numerical type | For values larger than a Long can hold, populate with a string. |
| Gauge | String or numerical type | For values larger than a Long can hold, populate with a string. |
| TimeTicks | String or numerical type | For values larger than a Long can hold, populate with a string. |
| Integer | String or numerical type | |
| UInteger | String or numerical type | For values larger than a Long can hold, populate with a string. |
| ObjectID | String | |
| IPAddress | String | |
| EndOfMibView | NULL/Nothing | |
| NoSuchInstance | NULL/Nothing | |
| NoSuchObject | NULL/Nothing | |
| Null | NULL/Nothing |