Aye, that would seem to do the trick nicely. Thanks
Scott - and for the ready-written function.
Terry
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 03 April 2006 16:46
To: Terry McDonnell
Subject: RE: [MI-L] To tell if a table is open or not
Hope this helps
function opentable(tablename as string) as logical
dim i as integer
For i = 1 to NumTables()
If TableInfo(i, TAB_INFO_NAME) = tablename Then
opentable = True
else
End If
NEXT
end function
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Terry McDonnell
Sent: Monday, April 03, 2006 9:22 AM
To: [EMAIL PROTECTED]
Subject: [MI-L] To tell if a table is open or notSomeone please tell/remind me how to tell if a certain table, that you might want to open, is already open, so you don't get a table already open error.Been looking for the likes of an OPEN() function or something on TableInfo() but I can't find it.'ppreciate it :-)terry McDonnell
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
