TPath from System.IOUtils vs FMX.Objects
I have new MultiDevice project:
dir := TPath.Combine(TPath.GetDocumentsPath, 'plikZAparatu.jpg');
and when I add Timage to project, it adds FMX.Objects to uses ... and TPath.Combine or TPath.GetDocumentsPath stops working, errors:
- TPath does not contain a member named Combine
- TPath does not contain a member named GetDocumentsPath
how to make it work again ?
You just must be sure System.IOUtils appears after FMX.Objects in the Uses clause in the Interface section.
I have to answer my own question...
FMX.Objects has to be added in interface section
System.IOUtils in implementation section
I don't know why, but it works ...