Thanks to very quick answers, I was able to confirm that
1 - "select * from layout1" will generate a "false" error if run from the
MapBasic window
2 - that it works ok from a compiled MBX application
Therefore, it seems that the MBWindow behaviour is a potential BUG, or that
there is a lack of information about a restriction of use of said statement
(there are several cases where such limitations are well documented).
In the course of testing that problem, I also found out that MapInfo keeps
count of the number of layout windows that are open in a session. If you
want to treat layout as tables, you have to call them Layout1, Layout2 ...
(layout in itself is taken to be a standard table name). If you have open
two layout windows, their title name will show Layout:1, Layout:2. If you
close Layout:1, the other's title will become Layout but it will remain as
Layout2 for MI. To get the "official" name of the table "behind" a layout,
you ave to use >> windowinfo(frontwindow(),10) <<
I guess that layouts are treated a little bit like queries with their number
ids increasing through a session, even when earlier ones are closed. But if
queries are displayed as browsers, they are properly identified respective
to their ids, which is not the case with layouts.
Jacques Paris
============================================================
e-mail [EMAIL PROTECTED]
gis activity (MapInfo mainly)
http://www.total.net/~rparis/gisproducts.htm
============================================================
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]