Hello,
I am using PB 2017 R3 Build 1880.
The FileDelete function is working fine in my machine whenever my application run on other machine then it is not getting deleted. I assume this function is returning (FALSE or NULL).
That might the file access or other issue.
I just want to display a proper message to user, why this file is not deleting like (Access denied or file is in used ,...etc.)
ls_file_loc variable has correct file location.
IF FileDelete (ls_file_loc) <> TRUE then
Messagebox("Info", "Unable to delete file", Exclamation!, OK! )
END IF
Please give your valuable suggestion...
Actually this file is creating by vb script. This vb script is executing in my PB application through RUN method. This file is creating in same directory where PB Application is running. Normally it is running in E:\ Drive.
I applied your suggested code but it is displaying message "The specified module could not be found" but I can see file is there. I just want popup the message why this file not getting deleted like Access denied or other.
Thank you.