System.Variant.operator ()
C++
operator bool() const;
operator char() const;
operator signed char() const;
operator unsigned char() const;
operator short() const;
operator unsigned short() const;
operator int() const;
operator unsigned int() const;
operator long() const;
operator unsigned long() const;
operator float() const;
operator double() const;
operator __int64() const;
operator unsigned __int64()const;
operator AnsiString() const;
operator Currency() const;
operator TDateTime() const;
operator WideString() const;
operator UnicodeString() const;
operator CURRENCY() const;
operator DECIMAL() const;
operator VARIANT();
operator TVariant();
operator wchar_t*() const;
__EXPLICIT operator IDispatch*();
__EXPLICIT operator IUnknown*();
__EXPLICIT operator IInterface*();
__EXPLICIT operator signed char*();
__EXPLICIT operator unsigned char*();
__EXPLICIT operator short*();
__EXPLICIT operator unsigned short*();
__EXPLICIT operator int*();
__EXPLICIT operator unsigned int*();
__EXPLICIT operator long*();
__EXPLICIT operator unsigned long*();
__EXPLICIT operator float*();
__EXPLICIT operator double*();
__EXPLICIT operator __int64*();
__EXPLICIT operator unsigned __int64*();
__EXPLICIT operator VARIANT*();
__EXPLICIT operator LPSAFEARRAY();
__EXPLICIT operator TVariant*();
__EXPLICIT operator Currency*();
__EXPLICIT operator TDateTime*();
__EXPLICIT operator wchar_t**();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | sysvari.h | System | Variant |
Description
Converts the Variant.
This operator returns a type that is a conversion of this Variant. If the T* conversion is used, the operator sets the varByRef bit, meaning that the Variant contains a reference as opposed to a value.
If the conversion operation is not possible because of an invalid variant type conversion, an EVariantError exception is thrown.
Note: Do not call the implicit conversion operator directly. It is an overload of the compiler conversion operation.