Sign in Join
FPDoc Onlineexperiment

VarToStrDef function

In unit Variants

Convert a variant to string value, specifying a default.

Declaration

pascal
function VarToStrDef(const V: Variant; const ADefault: AnsiString)
: AnsiString

Arguments

V

Variant to convert.

ADefault

Value to return if the variant equals Null.

Function result

The String representation of the variant value.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.