Kova,

You're absolutely right; we have used a variant of your example for years.
BUT we found out that the error handler sometimes doesn't get the error.

We haven't tested it yet, perhaps its some Event Processing Off Statement
conflict.
So we are back with my TabLeOpen example even though it might be slower on
giga many open tables.

Does anyone else have experience with stupid error handlers, that might be
smart to use?

Venlig hilsen,
Jakob Lanstorp, GIS-Developer

Kampsax   GIS Software & Solutions, Rugaardsvej 55, 5000 Odense, DK
tel: + 45 63 13 50 13, dir: + 45 63 13 50 11, fax: + 45 63 13 50 90
mailto:[EMAIL PROTECTED] , http://www.mapinfo.dk, http://www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway




                                                                                       
                         
                    "kova"                                                             
                         
                    <[EMAIL PROTECTED]        Til:    <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>          
                    u.edu.ru>            cc:                                           
                         
                                         Vedr.:  Re: MI-L Re: TableOpen in MapBasic    
                         
                    10-09-01                                                           
                         
                    10:16                                                              
                         
                                                                                       
                         
                                                                                       
                         



This code is faster:

Function TableOpen(ByVal name As String) As Logical
 Dim f  As Logical

 OnError Goto err_table
 f=TableInfo(name,TAB_INFO_READONLY)
err_table:
 If Err()=ERR_TABLE_NOT_FOUND
 Then
  TableOpen=False
 Else
  TableOpen=True
 End If
End Function
'****************************************************








_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to