[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Variants' (#rtl)

# VarToWideStrDef

Convert a variant to string value, specifying a default

## Declaration

Source position: variants.pp line 89

`function VarToWideStrDef(`
`const V: Variant;`
`const ADefault: WideString`
`):WideString;`

## Arguments

`V` |  | Variant to convert
`ADefault` |  | Value to return if the variant equals Null

## Function result

The String representation of the variant value

## Description

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

## See also

VarToWideStrDef |  | Convert a variant to string value, specifying a default
VarIsStr |  | Check if the variant is a string
VarToWideStr |  | Convert a variant to string value
VarToUnicodeStrDef |  | Convert a variant to string value, specifying a default

Documentation generated on: May 14 2021