Try this
TableCount = NumTables()
redim TableNames(TableCount+1)
Semi = ""
For LoopCount = 1 to TableCount
TableList = TableList + Semi + TableInfo(LoopCount, TAB_INFO_NAME)
TableNames(LoopCount+1) = TableInfo(LoopCount, TAB_INFO_NAME)
Semi = ";"
Next
TableNames(1) = "Selection"
TableList = "Selection;" + TableList
' You can then proceed to use TableList as the source of a pick list
("popup menu") in a dialog.
-----Original Message-----
From: Addison, Howard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:56 PM
To: '[EMAIL PROTECTED]'
Subject: MI-L get a list of currently open tables
Hi All
What's the easiest way ( in Mapbase code) to get a list of currently open
tables in MapInfo.
Ive found NumTables( ) function. This give the total number of files open.
But what I was hoping for is a function which would create an array of file
Names.
Many thanks
Howy
HOWARD ADDISON
CAD/GIS CO-ORDINATOR
AngloGold Australia Limited
Level 13, St Martins Tower
44 St Georges Terrace
Telephone (08) 94254649
Fax (08) 94254663
<mailto:[EMAIL PROTECTED]>
_______________________________________________________________
This e-mail message contains confidential information which is
intended for the use of the person to whom it is addressed.
If you received it in error, please notify the sender and
delete the material from any computer. Any disclosure,
re-transmission, dissemination or any other use of this
information is strictly prohibited.
_______________________________________________________________
_______________________________________________________________________
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.
_______________________________________________________________________
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.