method NETObjectTemplate.SetValue (Value as Variant)
Specifies the value of the object.
Type
Description
Value as Variant
A VARIANT expression that specifies the new value to be assigned to the
NETObjectTemplate object.
Use the SetValue
property to change the object being hosted by the current NETObjectTemplate
object. The Value property holds the original object. The VtType
property indicates the VARIANT type of the object that the current
NETObjectTemplate object holds. The Type
property returns a string that specifies the fully assembly-qualified name of the type, which includes the name of the assembly from which this Type object
is loaded. If the NETObjectTemplate holds a class or an object/IDispatch/IUnknown
that supports properties, fields, members, any of these can be called through
the NETObjectTemplate properties like: Item,
SetTemplateDef or Template
property.
You can use the following properties to convert the current Value to
indicated standard types:
AsBoolean, converts the value
to a boolean expression.
AsDate, converts the value to a
DATE-TIME/double expression.
AsDouble, converts the value to
a double expression.
AsInt, converts the value to an
integer-32 expression.
AsString, gets the value
converted to a string expression.