bcooney Posted September 2, 2006 Posted September 2, 2006 I know the answer is somewhere in the archives, but I've searched and searched. I'm building an import script for the update of a runtime. The user backs up the old version, creating a .mer file for each of the tables into a Backup Files folder. This is working fine. Then, in version2, I want to have a button that imports all the files from the Backup Files folder. However, there may exist the possibility that of the 12 files that are possible to export, bcs of no data in some tables, only 10 get exported. This causes my import script to stop at the first file not found and ask me to find it (with error capture off). With error on, which is necessary in the end product, the script seems to skip the rest of the script. Big problem. The last error is 100. Can I somehow trap for that error and have the script continue the import after not finding an import file? I tried an if get(lasterror=100)statement, but it still seems that the script skips to the end, even though there are three more files to import. How is this handled?
Recommended Posts
This topic is 6651 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now