I'm trying to use the TDirectory.GetFiles function, but when I add a TSearchOptions third parameter to force a recursive search the compiler raises an error saying that soAllDirectories has not been declared.
uses System.IOutils,
System.Types;
procedure TfrmConversio.btnConversioClick(Sender: TObject);
var FilesPas: TStringDynArray;
begin
FilesPas := TDirectory.GetFiles('C:\Project', '*.pas', soAllDirectories);
ProgressBar1.Max := Length(FilesPas);
end;
What am I doing wrong ?. I can see that constant in System.IOUtils.
Thank you.