RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarInRange Function

Indicates whether a Variant's value is in a specified range.

Pascal
function VarInRange(const AValue: Variant; const AMin: Variant; const AMax: Variant): Boolean;
C++
Boolean VarInRange(const Variant AValue, const Variant AMin, const Variant AMax);

Variants

VarInRange checks whether a Variant has a value in a specified range. 

AValue is a Variant to check. 

AMin is a Variant with the minimum acceptable value.  

AMax is a Variant with the maximum acceptable value. 

VarInRange returns true if AValue is greater than or equal to AMin and less than or equal to AMax. Otherwise, it returns false. 

 

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