Peter,
You said to use SelectionInfo to get a static name for the Selection.
When I tried to test that as the name of the query it just called it SelectionInfo.
I created the query using the SQL Select tool and got this as the code result.
Select * from det_dedup_nondup where left$(zone,6)="222-81" into SelectionInfo
Browse * From SelectionInfo
Regards,
Matthew
From: mapi...@googlegroups.com <mapi...@googlegroups.com>
Sent: Wednesday, March 3, 2021 9:05 PM
To: Digest recipients <mapi...@googlegroups.com>
Subject: [MI-L] Digest for mapi...@googlegroups.com - 6 updates in 3 topics
· Multiple independent points in one record - 3 Updates
· Detect changes to object geometry - 2 Updates
· Reset query numbers on close all - 1 Update
Ian Oldfield <oldfie...@googlemail.com>: Mar 03 06:59AM -0800
|
"Martin Hodder" <mho...@highermappingsolutions.com>: Mar 03 03:04PM
|
Ian Oldfield <oldfie...@googlemail.com>: Mar 03 03:16PM -0800
|
Uffe Kousgaard <uffe.ko...@routeware.dk>: Mar 03 08:17AM +0100
|
"Peter Horsbøll Møller" <Peter....@precisely.Com>: Mar 03 07:43AM
|
"Peter Horsbøll Møller" <Peter....@precisely.Com>: Mar 03 07:37AM
|
You received this digest because you're subscribed to updates for this group. You can change your settings on the
group membership page. |
Ah, sorry, I should have been a bit more precise.
Either use a named query:
Select * from det_dedup_nondup where left$(zone,6)="222-81" into __tempquery
Browse * From __tempquery
Or use SelectionInfo to get the query name:
Select * from det_dedup_nondup where left$(zone,6)="222-81" into Selection
Dim sQueryName As String
sQueryName = SelectionInfo(SEL_INFO_SELNAME)
Browse * From sQueryName
The benefit of using the named query is that you can combine this with the NoSelect keyword to avoid highlighting the result.
Select * from det_dedup_nondup where left$(zone,6)="222-81" into __tempquery NoSelect
Browse * From __tempquery
This is useful if you don’t need the selection later in your processing and it doesn’t interfere with a potential existing selection.
Also it can have the side effect of a better performance.
For the later versions of MapInfo Pro (v17 and never), you can also add the Hide keyword to avoid showing the query in the Table List in the Explorer window.
Select * from det_dedup_nondup where left$(zone,6)="222-81" into __tempquery NoSelect Hide
Browse * From __tempquery
Hop that helps
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mapinfo-l/437950dfc2e3405fa0c7e4e25710f347%40lmsg.co.