Skip to content

VarToUnicodeStrDef

Convert a variant to string value, specifying a default

Declaration

Source position: variants.pp line 91

  function VarToUnicodeStrDef(const V: Variant; 
                             const ADefault: UnicodeString)
                              : UnicodeString;

Description

VarToUnicodeStr attempts to convert the variant V to a string. If the value is Null, the result is the specified aDefault string.

See also

Name Description
VarIsStr Check if the variant is a string
VarToStrDef Convert a variant to string value, specifying a default
VarToUnicodeStr Convert a variant to string value
VarToWideStr Convert a variant to string value
VarToWideStrDef Convert a variant to string value, specifying a default