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

# VarIsOrdinal

Check if the variant is an ordinal value.

## Declaration

Source position: variants.pp line 80

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

## Arguments

`V` |  | Variant to check

## Function result

True if the value is of the type OrdinalVarTypes

## Description

VarIsCustom returns True if the variant V is of one of the ordinal types: OrdinalVarTypes (varSmallInt,varInteger, varBoolean,varShortInt,varByte,varWord, varLongWord,varInt64)

## 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.
VarIsFloat |  | Check if the variant is a floating-point value.
VarIsNumeric |  | Check if the variant is a numerical value
VarIsStr |  | Check if the variant is a string

Documentation generated on: May 14 2021