Matt

Some of the records haven't got objects so MapInfo raises an error as it
can't get a Centroid value for a NULL object.

Try
        Select * from your_table where obj into ~AllObj
        Update ~AllObj Set Easting=CentroidX(Obj)

(as you are in the UK remember to set your coordsys!)

Mike Saunt
Aligned Assets
Bradstone Brook
Christmas Hill
Shalford, Surrey
GU4 8HR, UK
T - 01483 469 401
F - 01483 469 408
E - mailto:[EMAIL PROTECTED]
W - http://www.aligned-assets.co.uk/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, November 10, 2000 12:14
To: [EMAIL PROTECTED]
Subject: MI-L Centorid Arguments.

Another small query.

After trying to update a column in a table with it's Easting

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.

Has anyone got a solution as I have a number of fields to update.
The table is not write protected or in use whilst trying to update.

Thanks

Matt




_______________________________________________________________________
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.



_______________________________________________________________________
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