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

# VarIsStr

Check if the variant is a string

## Declaration

Source position: variants.pp line 83

`function VarIsStr(`
`const V: Variant`
`):Boolean;`

## Arguments

`V` |  | Variant to test

## Function result

True if the value is of string type

## Description

VarIsCustom returns True if the variant V is of one of the string types: varOleStr, varUString, varString

## See also

VarIsEmpty |  | Check if the variant is empty
VarIsNull |  | Check if a variant is null
VarIsCustom |  | Check if the variant is a custom value.
VarIsOrdinal |  | Check if the variant is an ordinal value.
VarIsFloat |  | Check if the variant is a floating-point value.
VarIsBool |  | Check if the variant is a boolean

Documentation generated on: May 14 2021