How do tell if a table is open in mapbasic?

I've tried 

 x = TableInfo (tablename , TAB_INFO_NROWS)

but if the table is not open, this halts the mapbasic program, so i tried this:

onerror goto NotOpen
 x = TableInfo (tablename , TAB_INFO_NROWS)
NotOpen:

BUT, it still halts the program if the table is not open. OnError doesn't seem to be 
trapping all errors. 

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to