Implements a strongly typed (type safe) variant operations manager object.
Implements: AbstractVariantOperations
Description
The TypeSafeVariantOperations class allows you to implement a strongly typed (type safe) variant manager object.
Constructors
NewTypeSafeVariantOperations
Creates a new instance of the component
NewTypeSafeVariantOperations() *TypeSafeVariantOperations
Methods
Convert
Converts a variant to a specified type.
(c *TypeSafeVariantOperations) Convert(value *Variant, newType int) (*Variant, error)
- value: *Variant - variant value to be converted.
- newType: int - type of object to be returned (VariantType).
- returns: *Variant - converted Variant value.