Dart SNMP Library 4.0
SetValue Method
Data type to set the Variable to.
Value to populate the Variable with. Its type must be compatible with the specified data setType.
Description
Validates parameters and sets Value and Type values.
Syntax
Visual Basic
Public Sub SetValue( _
   ByVal setType As VariableTypeConstants, _
   Optional ByVal setVal As Variant _
) 
Parameters
setType
ValueDescription
typeCounterData type is an unsigned 32 bit integer that represents a counter.
typeCounter64Data type is an unsigned 64 bit integer.
typeEndOfMibViewEnd of MIB has been reached.
typeGaugeData type is an unsigned 32 bit integer that represents a gauge. Use for Unsigned32 tags also.
typeIntegerData type is a signed 32 bit integer.
typeIpAddressData type is a string that represents an IP Address in dot notation.
typeNoSuchInstanceIID does not exactly match the name of any accessible variable.
typeNoSuchObjectIID prefix does not match prefix of any accessible variable.
typeNSAPAddressData type is a byte array that represents an NSAP Address.
typeNullData type is NULL. Used for requests.
typeObjectIDData type is a string that represents an object identifier.
typeOctetStringData type is a byte array interpreted as an ASCII string.
typeOpaqueData type is a byte array usually interpreted as a binary blob.
typeTimeTicksData type is an unsigned 32 bit integer that represents time ticks
typeUIntegerData type is an unsigned 32 bit integer. Obsolete.
Data type to set the Variable to.
setVal
Value to populate the Variable with. Its type must be compatible with the specified data setType.
Remarks

 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
See Also

Variable Object  | Variable Members


PowerSNMP for ActiveX Documentation Version 4.0
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic