Hello,
I would use IndexStr from StrUtils:
https://www.freepascal.org/docs-html/rtl/strutils/indexstr.html
if IndexStr('subtext', ['abc','cde','fecg','hig']) >= 0 then
Regards
Dennis wrote:
is there a function like
if IsOneOf('subtext', ['abc','cde','fecg','hig']) then begin
...
end;
is there such a function IsOneOf(TheSubString : String; const
TheStrings : array of String) : Boolean
?
if yes, what is its name and unit?
Dennis
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal