, , TStringList, " " if (x=a1) or (x=a2) or (x=a3).... :
// FAcceptableValues is TStringList I set up elsewhere, such as my class constructor.
if FAcceptableValues.IndexOf(x)>=0 then ...
. :
var
Users:TList<TUser>;
Edits:TList<TEdit>;
begin
... other stuff like setup of FUsers/FEdits.
if Match(Users,Edits) then ...
:
For U in Users do
for E in Edits do
if U.Text=E.Text then
begin
result := true;
exit
end;
source
share