VarToStrDef

Convert a variant to string value, specifying a default

Declaration

Source position: variants.pp line 87

  function VarToStrDef(const V: Variant; const ADefault: string) : string;

Description

VarToStr 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
VarToStr Convert a variant to string value
VarToStrDef Convert a variant to string value, specifying a default