FastReport_2022_VCL/Source/ClientServer/frxHelperCS.pas
2024-01-01 16:13:08 +01:00

25 lines
389 B
ObjectPascal

unit frxHelperCS;
interface
uses
Classes, Masks;
type
TfrxStringListMask = class(TStringList)
public
function IndexOf(const S: string): Integer; override;
end;
implementation
uses
frxUtils;
function TfrxStringListMask.IndexOf(const S: string): Integer;
begin
for Result := 0 to GetCount - 1 do
if (MatchesMask(S, Get(Result))) then Exit;
Result := -1;
end;
end.