System.Variant.operator ()

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

C++

__fastcall operator bool()            const;
__fastcall operator char()            const;
__fastcall operator signed char()     const;
__fastcall operator unsigned char()   const;
__fastcall operator short()           const;
__fastcall operator unsigned short()  const;
__fastcall operator int()             const;
__fastcall operator unsigned int()    const;
__fastcall operator long()            const;
__fastcall operator unsigned long()   const;
__fastcall operator float()           const;
__fastcall operator double()          const;
__fastcall operator __int64()         const;
__fastcall operator unsigned __int64()const;
__fastcall operator AnsiString()      const;
__fastcall operator Currency()        const;
__fastcall operator TDateTime()       const;
__fastcall operator WideString()      const;
__fastcall operator UnicodeString()   const;
__fastcall operator CURRENCY()        const;
__fastcall operator DECIMAL()         const;
__fastcall operator VARIANT();
__fastcall operator TVariant();
__fastcall operator wchar_t*()        const;
__EXPLICIT __fastcall operator IDispatch*();
__EXPLICIT __fastcall operator IUnknown*();
__EXPLICIT __fastcall operator IInterface*();
__EXPLICIT __fastcall operator signed char*();
__EXPLICIT __fastcall operator unsigned char*();
__EXPLICIT __fastcall operator short*();
__EXPLICIT __fastcall operator unsigned short*();
__EXPLICIT __fastcall operator int*();
__EXPLICIT __fastcall operator unsigned int*();
__EXPLICIT __fastcall operator long*();
__EXPLICIT __fastcall operator unsigned long*();
__EXPLICIT __fastcall operator float*();
__EXPLICIT __fastcall operator double*();
__EXPLICIT __fastcall operator __int64*();
__EXPLICIT __fastcall operator unsigned __int64*();
__EXPLICIT __fastcall operator VARIANT*();
__EXPLICIT __fastcall operator LPSAFEARRAY();
__EXPLICIT __fastcall operator TVariant*();
__EXPLICIT __fastcall operator Currency*();
__EXPLICIT __fastcall operator TDateTime*();
__EXPLICIT __fastcall operator wchar_t**();

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public sysvari.h System Variant

Beschreibung

Dieser Operator umwandelt das Variant-Objekt.

Der Konvertierungsoperator gibt einen Typ zurück, der sich aus der Umwandlung des Variant-Objekts ergibt. Bei der T*-Umwandlung setzt der Operator das Bit varByRef, um anzuzeigen, dass das Variant-Objekt keinen Wert, sondern eine Referenz enthält.

Wenn die Konvertierung wegen einer ungültigen Variant-Typumwandlung scheitert, wird eine EVariantError-Exception ausgelöst.

Hinweis: Rufen Sie den impliziten Umwandlungsoperator nicht direkt auf. Dieser ist eine überladene Version der Compiler-Umwandlungsoperation.