Hi, we create a lot of excel and text files that are picked up by users. From time to time someone will have the file open when we are trying to overwrite it, which generates the following error in the log :
ERROR: File is in use, \\svrbu3file\etc........
I'm looking for a way of trapping this error and doing something in the code when it occurs. I tried checking syscc but it is still 0. Has anyone else had this problem or anyone able to offer a suggestion?
Try to open the file through the external file functions, for example like this:
if not FID then put "File &FILENAME is in use!";
else put "File &FILENAME opened successfully.";
FOPEN functions returns a file identifier (non zero integer) if the file was opened successfully.