I have a .TAB file of polyline objects in British Grid Coordinate. I need to extract the end points/nodes of each polyline and find their latitude/longitude (WGS84).
You should modify the table, by adding 4 fields: x1, y1, x2, y2 or similar. Now do table update: x1=objectnodex(obj,1,1) y1=objectnodey(obj,1,1)
For the end it is a little trickier: x2=objectnodex(obj,1,objectinfo(obj,22)) y2=objectnodey(obj,1,objectinfo(obj,22))
The above only works with polylines, not lines.
Since the default coordsys is wgs84, you don't need to change coordsys.