Я читал, что Delphi должен был получить каждый цикл в Delphi 9. Разве эта функциональность когда-либо превращалась в язык? Моя IDE Delphi 2009, похоже, не распознает для каждого синтаксиса. Здесь мой код:
procedure ProcessDirectory(p_Directory, p_Output : string);
var
files : TStringList;
filePath : string;
begin
files := GetSubfiles(p_Directory);
try
for (filePath in files.Strings) do
begin
// do something
end;
finally
files.Free;
end;
end;