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 ?


Responses (1)
  • Accepted Answer

    Thursday, March 16 2017, 02:27 AM - #Permalink

    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 ...

    The reply is currently minimized Show
Your Reply

Please login to post a reply