set coordsys table DEV-COIR_Non-op_beaches
Update DEV-COIR_Non-op_beaches Set obj = (CreatePoint (col1, col2))
Where col1 and col2 = the column names that hold the lat/long
coordinates. The first line sets the coordinate system in MapBasic, so
the points are created using the correct projection. I don't think the
Update statement is included in the MapBasic window when you're running
through the process manually, so it wasn't copied over when you cut and
pasted.
HTH
Greg Driver
System Administrator
Applications Support
ICT
Surrey Police
NOT PROTECTIVELY MARKED
Thanks,
*Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks.*
Update DEV-COIR_Non-op_beaches Set obj = CreatePoint(_col4,_col3)
If that doesn't work, check out the actual column names.
Also, is the table name correct? Having a minus in the name could be an
issue. MapInfo sometimes changes certain table names when opening them, so
the filename doesn't match the name you have to use inside mapinfo/mapbasic.
Regards
Uffe Kousgaard