System.Internal.VarHlpr.VariantShl2

De RAD Studio API Documentation
Aller à : navigation, rechercher

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);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Internal.VarHlpr.pas
System.Internal.VarHlpr.hpp
System.Internal.VarHlpr System.Internal.VarHlpr

Description

Effectue une opération shl (décalage gauche) entre deux Variants.

VariantShl2 effectue une opération shl (décalage gauche) bit à bit entre V1 et V2 et renvoie un nouveau Variant contenant le résultat.

Les valeurs d'entrée doivent être convertibles en types numériques. Sinon, une exception EVariantTypeCastError sera déclenchée.

Voir aussi