"Scott, David" wrote:
> Is there any way to populate an array with the names of all tables open?  I
> am totally stuck.

This is one of the first things taught in the MapBasic course.
Then we make it more complicated and say "list the *mappable*
tables only."

'--- begin scrapplication
Include "MapBasic.def"

dim sTables() as string
dim i, j as smallint

j = NumTables()
redim sTables(j)
for i = 1 to j
  sTables(i) = TableInfo (i, TAB_INFO_NAME)
next

'--- end

-- 
- Bill Thoen
------------------------------------------------------------ 
GISnet, 1401 Walnut St., Suite C, Boulder, CO  80302
tel: 303-786-9961, fax: 303-443-4856
mailto:[EMAIL PROTECTED], http://www.gisnet.com/
------------------------------------------------------------



_______________________________________________________________________
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