System.Internal.VarHlpr.VariantOr2

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function  VariantOr2(const V1: Variant; const V2: Variant): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VariantOr2(const System::Variant &V1, const System::Variant &V2);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.Internal.VarHlpr.pas
System.Internal.VarHlpr.hpp
System.Internal.VarHlpr System.Internal.VarHlpr

Beschreibung

Führt eine ODER-Operation mit zwei Varianten aus.

VariantOr2 führt eine bitweise oder logische ODER-Operation mit V1 und V2 durch und gibt eine neue Variante zurück, die das Ergebnis enthält.

Die Eingabewerte müssen in numerische oder boolesche Typen konvertierbar sein; ansonsten wird eine EVariantTypeCastError-Exception ausgelöst.

Siehe auch