RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarIsNumeric Function

Indicates whether the specified variant represents a numeric value.

Pascal
function VarIsNumeric(const V: Variant): Boolean;
C++
Boolean VarIsNumeric(const Variant V);

Variants

VarIsNumeric returns true if the given variant's type code indicates a numeric value of some sort. This can be either a floating-point value or an ordinal value. If the variant contains any other type of value, the function result is false. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!