RAD Studio VCL Reference
Variants.VarInRange Function

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

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

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

AValue is a System::Variant to check. 

AMin is a System::Variant with the minimum acceptable value.  

AMax is a System::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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!