Returns a Variant with a value in a specified range.
function VarEnsureRange(const AValue: Variant; const AMin: Variant; const AMax: Variant): Variant;
Variant VarEnsureRange(const Variant AValue, const Variant AMin, const Variant AMax);
Variants
VarEnsureRange returns a Variant whose value is guaranteed to be within a specified range.
AValue is a Variant with the value you want as long as it is in range. If AValue is in range, VarEnsureRange returns AValue.
AMin is a Variant with the minimum acceptable value. If AValue is less than AMin, VarEnsureRange returns AMin.
AMax is a Variant with the maximum acceptable value. If AValue is greater than AMax, VarEnsureRange returns AMax.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|