Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

VarToStrDef

Convert a variant to string value, specifying a default.

Declaration

Source position: variants.pp line 94

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

VarToStrDef

  

Convert a variant to string value, specifying a default.

VarIsStr

  

Check if the variant is a string.

VarToStr

  

Convert a variant to string value.


Documentation generated on: Nov 22 2024