The OleVariant type represents variants that contain only COM-compatible types. When a Variant is assigned to an OleVariant
, incompatible types are converted to their compatible counterparts. For example, if a variant containing an AnsiString is assigned to an OleVariant, the AnsiString becomes a WideString.