--
--
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 visit https://groups.google.com/d/msgid/mapinfo-l/a2680074-4ca1-45ba-bab1-17cef7d47643n%40googlegroups.com.
Select poitab.obj from POITAB, POISTYLE where POITAB. ETR_CRY-POISTYLE MSTR_CODE and POITAB SUB CRY-POISTYLE MIR SUBCOD into Templ NoSelect
Update Temp1 SET obj = Setobjectstyle(obj, FONT, SYMBOL_SIZE, COLOR_CDE, SYMBOL_CDE, FILE_NAME)
|
You don't often get email from ashuto...@gmail.com.
Learn why this is important
|
|
This message originated Externally. Use proper judgement and caution with attachments, links, or responses. |
Hi,
Thank you for your reply and suggestions @Peter Horsbøll Møller, @Uffe Kousgaard
Sorry for the typo in my previous email. The actual query is:
Select * from POITAB, POISTYLE where POITAB.FTR_CRY = POISTYLE.MSTR_CODE and POITAB.SUB_CRY = POISTYLE.MTR_SUBCOD into Temp1 Update Temp1 Set obj = SetObjectStyle(obj, FONT, SYMBOL_SIZE, COLOR_CDE, SYMBOL_CDE, FILE_NAME)In previous versions of MapInfo Pro, I did not need to save the query result into a new native table or rewrite the data. Updating the obj column in Temp1 automatically updated the corresponding records in POITAB, which made the process very fast and efficient.
I understand that rewriting the table is a possible workaround. However, in my case the query often contains only the matching records. If I create a new table from the query, it will contain only the selected rows, and I would then need to merge or insert the non-matching records back into the table before replacing the original POITAB. This adds additional processing and complexity compared to the previous behavior.
Could you please provide more details about your suggestion to "create a new version of the SetObjectStyle() function that takes the object and an ID and uses the ID to retrieve the styles"?
I'm particularly interested in understanding how this approach would retrieve the style information from the reference table without requiring a join, and whether you have an example implementation or MapBasic sample that demonstrates this technique.
Thank you again for your guidance.