Hello Carol, Hassan (and others with the same problem)...

I think I may have another solution for you:

If I understand the problem correctly, you

- have a map with open tables, but you might not know which or how many
- want to close all open tables
- keep the map window open because you need the window ID

A workaround might be:

Open a mappable table (could be just a dummy table that you supply) with the
keyword hide. This will prevent it from showing up i.e. in the "close table"
dialog. Add the table to the Map window

Use the NUMTABLES() function to retreive no. of open tables (your hidden
table will NOT be counted)

You can then perform a loop (for the no. of open tables) where you

1) use TableInfo(1, TAB_INFO_NAME) to retreive the name of the first open
table
2) close that table

This should close all your originally open tables, but leave your hidden
table (and thus the map) open. Note that under 1) your hidden table will not
show up.

After you then have opened one or several other table(s) you have your
original map window, but with new tables. You will have to close your hidden
table manually.

I haven't done any extensive testing, but this MIGHT work...

HTH

Peter


Peter Ketting, GIS consultant
Ministry for Environment and Energy
Denmark

> ----------
> Fra:  Sheehan, Carol[SMTP:[EMAIL PROTECTED]]
> Sendt:        8. marts 1999 14:49
> Til:  '[EMAIL PROTECTED]'
> Emne:         re: MI error number 34623
> 
> Hassan,
> 
> In my point of view, here's what you need to do to resolve this.
> 
> Don't "close all" and then open a new window.  This is causing internal
> error 34623.  Instead, set map redraw off and open your new tables.  Then
> close the unwanted tables that were opened originally.  Set your map
> display
> the way you wish and then set map redraw on.
> 
> This is going to cause a rewrite of code for you but in my view there is
> no
> other way around this problem.
> 
> If this does not work for you, please let me know as I am trying to keep
> track of everything I can in regards to this error.
> 
> Good luck,
> 
> Carol Sheehan
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
> 
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to