I can only agree with David, but not only in Intergrated Mapping there
might be problems.

I have quite a few times experienced that the error handler doesn't work in
MapInfo Pro therefor
I'm using the loop way, too. Eventhough it might be a bit slower,
especially when there a many tables
open.

Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013,  dir:+45 6313 5008,  fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Se mere om Dansk MapInfo Brugerkonference p� 
http://www.kampsax-gis.dk/Default.asp?ID=296

Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
Check http://www.kortal.dk and have a look at Denmark from above!
----- Videresendt af Peter M�ller/Kampsax - 31-05-2002 07:29 -----
                                                                                       
                            
                    "Cautley,                                                          
                            
                    David/PDX"           Til:    'MAGS-Gerencia' 
<[EMAIL PROTECTED]>, "'Morrier, Steve'"        
                    <DCautley@CH2        <[EMAIL PROTECTED]>                     
                            
                    M.com>               cc:     "'[EMAIL PROTECTED]'" 
                            
                                         <[EMAIL PROTECTED]>           
                            
                    30-05-2002           Vedr.:  RE: MI-L Check that a table is open?? 
                            
                    23:45                                                              
                            
                                                                                       
                            
                                                                                       
                            



Correct ... I do it the other way because I sometimes use the function in
integrated mapping contexts where error trapping doesn't work (loosely
speaking).

-----Original Message-----
From: MAGS-Gerencia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 2:45 PM
To: Cautley, David/PDX; 'Morrier, Steve'
Cc: [EMAIL PROTECTED]
Subject: Re: MI-L Check that a table is open??


Another way.

Function IsTableOpen(Byval TName as string) as logical

    onerror Goto IsTableOpen_error
    IsTableOpen = TRUE
    Fetch First From TName
    Exit Function

IsTableOpen_error:
    IsTableOpen = FALSE
End Functin

----- Original Message -----
From: "Cautley, David/PDX" <[EMAIL PROTECTED]>
To: "'Morrier, Steve'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 2:25 PM
Subject: RE: MI-L Check that a table is open??


> ' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
*
> * * * * * * * * * *
> '
> ' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
*
> * * * * * * * * * *
> Function IsTableOpen(Byval TName as string) as logical
> Dim l as Logical
> Dim TabCount as integer
> Dim LoopCount as integer
>
> TabCount = Numtables()
> IsTableOpen = False
> For LoopCount = 1 to TabCount
> If TName = TableInfo(LoopCount, TAB_INFO_NAME) then IsTableOpen = TRUE
> Exit function
> end if
> Next
>
>
> End Function
>
> -----Original Message-----
> From: Morrier, Steve [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 10:03 AM
> Cc: [EMAIL PROTECTED]
> Subject: MI-L Check that a table is open??
>
>
> Hi all is there a quick and painless way to verify that a table is open
in
> MapBasic? Any table? I just want to make sure that a table is open before
I
> continue with my script. TIA.
>
> Steve
>
> -----Original Message-----
> From: Bill Thoen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 10:52 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: MI-L Trying to figure out if I had been dropped from the
list
>
>
> [EMAIL PROTECTED] wrote:
> >
> > Have I been dropped from the list?
>
> To check to see if you are still on the list, send a blank email to
> [EMAIL PROTECTED], where you substitute
> you email address and domain in place of NAME and DOMAIN. In your case,
you
> would send a message to
> [EMAIL PROTECTED]
> Note the equals sign in place of the '@' in your email address. For more
> details on how to use this EZMLM mailing list server, see
> http://www.ezmlm.org/ezman-0.32/index.html.
>
> The only things that would cause you to be dropped from the list are
> 1.) you left an out-of-office robot message aimed at the list, or
> 2.) your mail server rejects too many MapInfo-L messages in a row (i.e.
your
> server is broken, or your server's virus-checker thinks that MapBasic
code
> in messages looks to much like VBA scripts and it
> panics.)
>
> In any case, just fix the problem, and sign up again. If you want to talk
> directly to the list owner (me), send mail to
> [EMAIL PROTECTED]
>
> - Bill Thoen
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com | To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to