Hi Mark,

Well, if your last line looks as below (Northing=centroidy(obj)) and you
are using the MapBasic window inside MapInfo Pro, then you will get an
error.

If this isn't the case, then try updating only one of the columns at a
time. Maybe the spelling isn't correct ?

Or maybe you have a single record in your table without an attached object.

Try this SQL Select:
     Select * From SOIL_POINTS_2001 Where Not OBJ Into Selection

If neither of these suggestions are correct, please provide the error
message. This might give a hint where to look for the problem.

Peter
------------------------------------------------------------------------------------------------

Peter Horsb�ll M�ller, GIS-Developer
Kampsax A/S, GIS Software & Solutions, Rugaardsvej 55, DK-5000 Odense,
Denmark
tlf: + 45 63 13 50 13, dir: + 45 63 13 50 08, fax: + 45 63 13 50 90
mail: [EMAIL PROTECTED], http://www.mapinfo.dk, http://www.kampsax.dk
------------------------------------------------------------------------------------------------


Mark Lindberg wrote:
I'm a neophyte at mapbasic and having a few problems.  What I want to do is
to update two columns "Easting" and "Northing".  (I've created these fields
in a table called "Soil_points_2001").  Here is a copy of the mapbasic code
that I'm trying to run.  Everything seems to work out okay until the last
line of code is run.  Do any of you have any ideas?

dim s as string
s = chooseprojection$ (" ",0)
Run Command "Set " + s
Update Soil_points_2001 set Easting=centroidx(obj), set
Northing=centroidy(obj)





_______________________________________________________________________
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