Name

VarToStr Function

Syntax

function VarToStr(const V: Variant): string;

Description

VarToStr converts a Variant to a string. If V is Null, VarToStr returns an empty string. VarToStr is a real function.

Tips and Tricks

The only difference between calling VarToStr and simply assigning a Variant to a string variable occurs if the Variant is Null. Assigning Null to a string would result in runtime error 15 (EVariantError).

See Also

Null Variable, String Keyword, Variant Type, VarIsNull Function
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset