System.Variants.VarToStr

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function VarToStr(const V: Variant): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall VarToStr(const System::Variant &V);

Propriétés

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


Description

Convertit la valeur d'un variant en chaîne.


VarToStr convertit les données du variant V en chaîne et renvoie le résultat. Si le variant a une valeur nulle, VarToStr renvoie la valeur de la variable NullAsStringValue.

Voir aussi


Exemples de code