Jiye Assuming you've got the record from which you want to take the x/y co-ords, and that to which you want to store them, something like:
' Get the coords at the selected point in Streets. Dim loObj as Object ... loObj = Streets.Obj lnNewX = INT( ROUND( CentroidX( loObj), 1)) lnNewY = INT( ROUND( CentroidY( loObj), 1)) loObj = Points.Obj Alter Object loObj Geography OBJ_GEO_POINTX, lnNewX Alter Object loObj Geography OBJ_GEO_POINTY, lnNewY HTH Terry -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang, Jiye Sent: 07 December 2005 15:46 To: Terry McDonnell Subject: [MI-L] Update X & Y coord Please someone point me the direction how to updated a table with X and Y coordinates. I have 2 tables, one is streets line and other is points data points table. I am trying to get the X and Y coordinates for the points from street line table. I have done this long time ago, somehow it slipped away from me. I have used Table-Update Column, it seems not working. Thanks Jiye Zhang NYC DEP DWQC Field Operation (718) 595-6313 (718) 595-6399 (fax) [EMAIL PROTECTED] _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
