Page 1 of 1

deleting files from app

Posted: Mon Oct 19, 2020 9:52 am
by plantenkennis
Hello Antonio,

Next question: How can I delete a file from within my program? I have tried next commands without success:
  • FERASE
  • DELETEFILE
  • MOVETOTRASH

Re: deleting files from app

Posted: Mon Oct 19, 2020 10:45 am
by Antonio Linares
René,

Please try it this way:

FErase( cPathName + "/" + cFileName )

Re: deleting files from app

Posted: Mon Oct 19, 2020 6:49 pm
by plantenkennis
Hello Antonio,

Yes, I include the path when deleting a file, but all function return .F. So they can't delete the file. I have complete read/write access to the files.