Hi Jason,

 

One way could be to use the FileExists() function looking for the tab file inside an If loop.

Another way would be to have an error trap such as:

 

OnError Goto TabNotFound

 

Open Table "c:\temp\MyTable"

 

after_open:

 

 'whatever else you are doing in the program

 

End Program

 

TabNotFound:

  Note "Table not found"

  Resume after_open

 

Cheers

David Llewellyn

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jason kerr
Sent:
Monday, 26 June 2006 9:31 PM
To: [email protected]
Subject: [MI-L] Table not available

 

hi,

I am looking for a mapbasic command to add to my routine which opens multiple tables from a directory, now on ocassions certian tables are not in the directory.

Is there any command that can tell mapinfo to move on when it does'nt find a table and continue on with the routine.

 

regards

jason

____________________________________________
Jason Kerr

CCS Surveying

127 Stranmillis Road

Belfast

BT9 5AJ

p: 028 90662442

m: 079 71633047

f: 028 90382451

 

 

 

 

 

If this email has been received in error, please delete all copies and inform the National Native Title Tribunal by return email or telephone 1800 640 501. The Tribunal does not warrant that its email is virus free. All emails sent to the Tribunal are filtered for viruses and inappropriate content. Thus your email may not reach the person to whom it is addressed. Seek confirmation of receipt of your email if you consider the email important.
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to