System.Variant.operator =
C++
Variant& operator =(const Variant& rhs);
Variant& operator =(const bool src);
Variant& operator =(const char src);
Variant& operator =(const signed char src);
Variant& operator =(const unsigned char src);
Variant& operator =(const short src);
Variant& operator =(const unsigned short src);
Variant& operator =(const int src);
Variant& operator =(const unsigned int src);
Variant& operator =(const long src);
Variant& operator =(const unsigned long src);
Variant& operator =(const float src);
Variant& operator =(const double src);
Variant& operator =(const __int64 src);
Variant& operator =(const unsigned __int64 src);
Variant& operator =(const CURRENCY& src);
Variant& operator =(const DECIMAL& src);
Variant& operator =(const SAFEARRAY& src);
Variant& operator =(const VARIANT& rhs);
Variant& operator =(SAFEARRAY* src);
Variant& operator =(VARIANT* rhs);
Variant& operator =(const TVariant& rhs);
Variant& operator =(TVariant* rhs);
Variant& operator =(const AnsiString& src);
Variant& operator =(const Currency& src);
Variant& operator =(const TDateTime& src);
Variant& operator =(const VariantError& src);
Variant& operator =(const WideString& src);
Variant& operator =(const UnicodeString& src);
Variant& operator =(const System::DelphiInterface<IDispatch>& src);
Variant& operator =(wchar_t* src) {
Variant& operator =(IUnknown* src);
Variant& operator =(IDispatch* src);
Variant& operator =(const char* src); // Treated as pointer Asciiz string
Variant& operator =(signed char* src);
Variant& operator =(unsigned char* src);
Variant& operator =(short* src);
Variant& operator =(unsigned short* src);
Variant& operator =(int* src);
Variant& operator =(unsigned int* src);
Variant& operator =(long* src);
Variant& operator =(unsigned long* src);
Variant& operator =(float* src);
Variant& operator =(double* src);
Variant& operator =(__int64* src);
Variant& operator =(unsigned __int64* src);
Variant& operator =(CURRENCY* src);
Variant& operator =(SAFEARRAY** src);
Variant& operator =(DECIMAL* src);
Variant& operator =(wchar_t** src); // VT_BSTR|VT_BYREF
Variant& operator =(IUnknown** src);
Variant& operator =(IInterface**src);
Variant& operator =(IDispatch** src);
Variant& operator =(Currency* src);
Variant& operator =(TDateTime* src);
Variant& operator =(Variant* src);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | sysvari.h | System | Variant |
Description
Copies the Variant specified by rhs into this Variant.
The actual types of the Variants determine the meaning of this operation. If the Variants can be converted to types that make sense for the given operation, the assignment is performed. If any of these operations is not possible because of an invalid variant type conversion, an EVariantError exception is thrown.