Filecopy...True/False

  • Thread starter Thread starter John J.
  • Start date Start date
J

John J.

I'm writing a critical routine that copies files within a loop. I'm using
FileCopy but I don't see a way to check whether the FileCopy action has been
successful. I was hoping for a
if FileCopy then
.....
endif
but it's not there. Trapping for all kinds of error doesn't seem very
elegant either.

What approach should I take? Or is there a better method to do this?

Thank you,
John
 
John J. said:
I'm writing a critical routine that copies files within a loop. I'm using
FileCopy but I don't see a way to check whether the FileCopy action has
been successful. I was hoping for a
if FileCopy then
....
endif
but it's not there. Trapping for all kinds of error doesn't seem very
elegant either.

What approach should I take? Or is there a better method to do this?

Found it:
http://myaccesstips.com/Functionality/FileSystem.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top