deleting files from app

deleting files from app

Postby plantenkennis » Mon Oct 19, 2020 9:52 am

Hello Antonio,

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

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands

Re: deleting files from app

Postby Antonio Linares » Mon Oct 19, 2020 10:45 am

René,

Please try it this way:

FErase( cPathName + "/" + cFileName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: deleting files from app

Postby plantenkennis » Mon Oct 19, 2020 6:49 pm

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.
Kind regards,

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 3 guests

cron