Andrew
Presumably you've made the tables mappable?
Why not include the code from your script so that one can see where you're
going wrong?
I include some examples from MB Help for you:
Examples
The following example uses the Insert statement to insert a new row into the
table Sites. The CreatePoint() function is used within the body of the Insert
statement to specify the graphic object that will be attached to the new row.
Open Table "sites"
Insert Into sites (obj)
Values ( CreatePoint(-72.5, 42.4) )
The following example assumes that the table Sites has Xcoord and Ycoord
columns, which indicate the longitude and latitude positions of the data. The
Update statement uses the CreatePoint( ) function to build a point object for
each row in the table. Following the Update operation, each row in the Sites
table will have a point object attached. Each point object will be located at
the position indicated by the Xcoord, Ycoord columns.
Open Table "sites"
Update sites
Set obj = CreatePoint(xcoord, ycoord)
HTH
Terry McDonnell
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Tracey
Sent: 07 March 2006 16:46
To: Terry McDonnell
Subject: [MI-L] Creating Points
Dear All
I have written a script which disaggregates a text file into multiple tables, I
then want to create point for each table, if I take the syntax from the
mapbasic window and then run the mbx the points are not created, does anyone
know of a way of creating points in mapbasic?
Thanks
Andrew Tracey
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l