|
Hi Andrew
Thanks for
the reply. Yes, I remember the exchange between us last year, and I did
reply to you that your problem was similar to one I'd encountered, and had given
me an idea. I kept your messages but couldn't find any hint in my code
where it might be going wrong. I've only just had the time to tackle this
- tying up loose ends.
Funny, I
thought I'd just written to you asking you for a sample of code where your
problem was (but must have forgotten to :-)
Unfortunately my code is not similar to yours and the problem doesn't
occur due to an insert. I don't insert - merely update readable, integer
lat/long fields with any new centroid graphic object values
found.
The help I
gave you last year, as I recall, was to do with creating like a "bespoke" info
tool, to get the details of a clicked-on object into a
dialogue.
Regards
Terry From: Andrew Hare [mailto:[EMAIL PROTECTED] Sent: 15 May 2006 05:55 To: Terry McDonnell Subject: RE: [MI-L] Moving an object and it gets duplicated. Terry I had the same prob and
what I was doing was using an info tool to select the correct line in table
ws_point And creating a query
table info_ws_point WHICH is actually a record out of the ws_point
table The second bit of code
after the end if is where the duplicate happens Note the insert into
info_point_ws_point This is where the
duplication occurs The reason why I think
this is the problem is I had some coding help from you last year and I had
massaged your code to suit my app Select * from
ws_point
Where RowID = lnRowID
into info_ws_point
End if
If SelectionInfo( SEL_INFO_NROWS) > 0 then '
Insert into info_ws_point
Select * from info_ws_point So look to see if any insert
statements in the coding Hope this
helps
Regards GIS
Administrator Waimate District
Council P.O Waimate Ph: +64 3 689
8079 Fax: +64 3 689
8075 From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Terry McDonnell Hey
List My problem
is that I was moving objects around and somehow I ended up with 3 recs the same
(one hidden underneath another, such that there only appeared to be 2). At the
time I probably had the Info dialog open, as I was testing my software's ability
to change the lat/long integer fields, according to the x/y whefre the object
ended up, at Save time. I have not been able to reproduce this "glitch", notr
did I notice when it happened. Anyone got
any ideas how this can happen 'ppreciate
it Terry |
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
