Hi
david
To call the menu command
You simply type the
run menu command M_QUERY_FIND_SELECTION
this above line will call the menu command
As you are mentioned that
Select * From sCosmetic Into _SelectionTab
> Add Map layer _SelectionTab
> Set Map Zoom Entire Layer _SelectionTab
> Close Table _SelectionTab
here are all the syntx correct
Cheer San
------------------------------------------------------
--- "Eagle, David A" <[EMAIL PROTECTED]> wrote:
> Listers,
>
> I am trying to code into my application the ability
> to zoom into a selected
> object created on the cosmetic layer. I have done
> some trawling of the list
> and have got so far but I'm having problems.
>
> Dim sCosmetic As String
> sCosmetic = LayerInfo(FrontWindow(), 0,
> LAYER_INFO_NAME)
>
> 'I create my point here!
>
> Select * From sCosmetic Into _SelectionTab
> Add Map layer _SelectionTab
> Set Map Zoom Entire Layer _SelectionTab
> Close Table _SelectionTab
>
> The app is falling over here telling me that
> _SelectionTab is not open? And
> yet it features in the layer control...Any ideas?
>
> As a way around it I am trying to call
> 'M_QUERY_FIND_SELECTION' as defined
> in the Menu.def. However,
>
> Call M_QUERY_FIND_SELECTION
>
> Returns 'Found [306] while searching for an
> identifier.'
>
> I know that 306 is the ID, I'm missing something
> obvious. Can you only call
> items such as this from a menu item...
>
> Yours frustrated and getting nowhere fast,
> Dave
>
> --------------------
> David A. Eagle - GIS Consultant, WS Atkins
> Consultants Ltd
> Cornerstone House, Stafford Park 13, Telford, TF3
> 3AZ
> Tel: (01952) 201234 Fax: (01952) 200981
>
> [EMAIL PROTECTED] <www.wsatkins.com>
>
>
>
>
> This email and any attached files are confidential
> and copyright protected.
> If you are not the addressee, any dissemination of
> this communication is
> strictly prohibited. Unless otherwise expressly
> agreed in writing, nothing
> stated in this communication shall be legally
> binding.
>
>
>
>
>
_______________________________________________________________________
> 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.
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.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.