Return to begin. I reading a db that can contain a list of filename that i must delete.
I had made so
If File.Exists(NameDir, FileName) then File.Delete(NameDir, FileName)
Where filename is read from db.
filename = cursors.getstring("nomefile")
But if in filename not is valorized the App delete the folder. In the note of file.exists not specified this, so this is a bug.
Afther discovered this the correct code is
If File.Exists(NameDir, FileName) and FileName.lenght > 0 then
File.Delete(NameDir, FileName)
end if
Yours sincerely