Last active
August 31, 2022 14:20
-
-
Save reinaldoacdc/27baec54fa0f37d997fe8f3e8050c031 to your computer and use it in GitHub Desktop.
VariantsHelper.pas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit VariantsHelper; | |
interface | |
type | |
TVariantsHelper = record helper for variants | |
function ValueInRange(const ARange: array of Variant): Boolean; | |
end; | |
implementation | |
function TvariantsHelper.VelueInRange(const ARange: array of Variant): Boolean; | |
var I: Integer; | |
begin | |
Result := False; | |
for I := Low(ARange) to High(ARange) do | |
begin | |
if ARange[I] = Self then | |
begin | |
Result := True; | |
Exit; | |
end; | |
end; | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment