System.Variants.VarToStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarToStr(const V: Variant): string;

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Converts a variant's value to a string.

VarToStr converts the data in the variant V to a string and returns the result. If the variant has a null value, VarToStr returns an empty string.

See Also


Code Examples