I'm working on some MapBasic code and in the process I want it to open the .tab files in a given folder. But when it reaches a .tab file that it is not able to open (e.g. attached to a raster that does not exist, ID/DAT/MAP files missing, etc.), I get the following warning message and it won't open the files that come after it:
Snppet of code:
If FileNames(i) like "%TAB" then Open Table FileNames(i) End If
Is there away to have the code continue after this type of error is encountered so that it will load all of the non-corrupted files? Or better yet have the code load all the files and give a list/report at the end of which files it was unable to open?