VarInRange function
Check if a variant is in a range of values.
Declaration
function VarInRange(const AValue: Variant; const AMin: Variant;
const AMax: Variant): BooleanArguments
AValue | Value to check. |
AMin | Lower bound of range. |
AMax | Upper bound of range. |
Function result
True if
AValue is in range
[AMin..AMax].Description
VarInRange is an auxiliary function which checks whether
AValue is in the range defined by
AMin and
AMax, borders included.Errors
If the variants are of different types and they cannot be converted, an exception will be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
