System.Internal.VarHlpr.VariantAnd2

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

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

C++

extern DELPHI_PACKAGE System::Variant __fastcall VariantAnd2(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 UND-Operation mit zwei Varianten aus.

VariantAnd2 führt eine bitweise oder logische UND-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