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]