RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarToStrDef Function

Converts a variant's value to a string.

Pascal
function VarToStrDef(const V: Variant; const ADefault: string): string;
C++
AnsiString VarToStrDef(const Variant V, const AnsiString ADefault);

Variants

VarToStrDef converts the data in the variant V to a string and returns the result. If the variant has a null value, VarToStrDef returns ADefault. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!