System.Internal.VarHlpr.VariantShl2
Delphi
function VariantShl2(const V1: Variant; const V2: Variant): Variant;
C++
extern DELPHI_PACKAGE System::Variant __fastcall VariantShl2(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 shl-Operation (Linksverschiebung) mit zwei Varianten aus.
VariantShl2 führt eine bitweise oder logische shl-Operation (Linksverschiebung) mit V1 und V2 durch und gibt eine neue Variante zurück, die das Ergebnis enthält.
Die Eingabewerte müssen in numerische Typen konvertierbar sein; ansonsten wird eine EVariantTypeCastError-Exception ausgelöst.