FastReport_2022_VCL/Source/ClientServer/frxHelperCS.pas

25 lines
389 B
ObjectPascal
Raw Normal View History

2024-01-01 16:13:08 +01:00
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.