Hi Peter,
I wish it was like that, but I just checked (by grouping and counting)
and teryt entries are all unique. I applied the same test for PT and
the result was the same.
What's more, I made the following command:
Add Column "PT" (TERYT_2 Char (10))From sel Set To TERYT Where COL1 =
COL1 Dynamic
where col1 is Teryt in both the tables and guess what the output is:
teryt teryt_2
3001011
3001022
3001032
3001043
3001044
3001053 3007052
3001054 3010112
3002011 3012044
so the problem is in matching records. Can I do anything about it?
Bug?
I just noticed that the matching is correct when applied to the saved
(commited) sel (sel is the name of the selection). Is there an issue
with updating tables with values from selection that I'm not aware of?
Jakub
On 26 Lis, 21:55, Peter Horsbøll Møller <
mapinf...@horsboll-moller.dk>
wrote:
> Jakub,
>
> The code does work. I have just tried it with the small sample tables you
> showed in your first email.
> The problem might be that the value in TERYT in the table SEL isn't unique -
> does each of these values appear multiple times in that table?
>
> If so MapInfo might only keep the last value.
> I noticed that the value 3001053 was assigned a value of 6, not 0 as the
> other records. That might indicate that the codes might appear multiple
> times in the SEL table.
>
> Peter Horsbøll Møller
> Pitney Bowes Business Insight - MapInfo
>
> 2009/11/26 kompas <
zbudniewk...@interia.pl>