Your problem here is that you are using a tab file created from an Excel file. In order to do these kinds of operations you need to attach a map to your tab, and this can only be done using a native MapInfo file (or so I believe!). Within your mb code issue the two following lines:
Commit Table originaltable As newtable Coordsys coordinatesystem Open Table newtablelocation Simply substitue originaltable, newtable, coordinatesystem, and newtablelocation with your own values. Now you can update your new table in the same way you were trying. ------------------------------- Kind Regards, Colin Henderson GI Developer Ordnance Survey Tel: +44 (0)2380 79 2327 mailto:[EMAIL PROTECTED] ------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 6 February 2002 20:48 To: [EMAIL PROTECTED] Subject: MI-L Creating and attaching Object in aTable Importance: High Hi all, A quick question. I am trying to create an object using Update <table> Set obj = create....... table has the x-y cordinate columns and the information needed for the object in my case for ellipse. The problem is that these informations are imported from an Exdel file and therefore the table.TAB doesnt have the MAP associatin and gives me an error while running obj not defined. My question is that can I over come this thing from with my MB code. I mean to create the objects and attached them with each row of the table. Thanks for your help in afvance. Khurram _______________________________________________________________________ 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. *************************************************************** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *************************************************************** *************************************************************** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *************************************************************** _______________________________________________________________________ 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.
