Hi,
I have code that cycles through a bunch of different db files, opening each one and peeking in it briefly for some info, then closing and moving on. If the db file I want to peak in is currently in use, I just skip it. The way I do this is through error handling, something like the following:
For....
set db1=opendatabase(strfolder(i))
[do some peeking here]
db1.close
set db1=nothing
Next....
this is wrapped in a for-next loop. The error handler is set to just progress to the next strfolder if error 3045 (file already in use) is encountered.
The first time it comes to error 3045, it does that just fine. The second time, however, it ignores the error handler and the code just goes into break mode.
I double checked and I do have my options set to "break on unhandled errors". I tried compact/repair to no avail.
Any ideas???
I have code that cycles through a bunch of different db files, opening each one and peeking in it briefly for some info, then closing and moving on. If the db file I want to peak in is currently in use, I just skip it. The way I do this is through error handling, something like the following:
For....
set db1=opendatabase(strfolder(i))
[do some peeking here]
db1.close
set db1=nothing
Next....
this is wrapped in a for-next loop. The error handler is set to just progress to the next strfolder if error 3045 (file already in use) is encountered.
The first time it comes to error 3045, it does that just fine. The second time, however, it ignores the error handler and the code just goes into break mode.
I double checked and I do have my options set to "break on unhandled errors". I tried compact/repair to no avail.
Any ideas???