MJSully wrote:

> Open Table "Q:\CAMS\MAPINFO\ROWtest.TAB" Interactive
> Map From ROWtest
> Update ROWtest Set Easting = CentroidX(obj)

> Mapinfo throws back an error message :

> Centroidx - could not fetch object from the current ROW argument.


As others have written, some of the rows of your table do not have graphic
objects.

You need to select all records that *have* a graphic object before you can
update the table.

If you use "Query -> Select" simply type "obj" in the box after the label
"That satisfy:".   You can then update the table that results from that
selection
withc CentroidX() and/or centroidY() without any problem.

You probably will want to fill in the coordinate columns for record that
don't have
graphic objects with a "dummy" value (zero will do nicely).
To do that, use "Query -> Select" again, and type "not obj" in the same
place you had
typed "obj" before.

HTH
Spencer



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to