System.Variants.VarInRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall VarInRange(const System::Variant &AValue, const System::Variant &AMin, const System::Variant &AMax);

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

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

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.

See Also