Leo I'd guess that your run-time error is due to the fact that you have objects other than polygons in your table. If you try to use ObjectInfo() to fetch the brush style of a line, for example, then MapInfo simply gives up.
You may be interested in two free Mapbasic tools that I have developed to support this kind of activity: XBrowser - exposes the details of the Obj column of a MapInfo table (so you can quickly see if you have some "non-polygons) SelectByDrawingStyle(SDS) - select rows of a table by Obj type and Drawing Style (so you can select, say, all the RED POLYGONS) Dowload them from www.acslink.aone.net.au/actaa/iaa.htm under the subject [Products][Free Tools] Regards David M Haycraft Information Analysis Associates Pty Ltd ABN 47 085 516 105 1 Cumming Place, Wanniassa, 2903 Aust Capital Territory, Australia Phone/Fax: 61 + 2 + 6231 8104 Mobile: 0412 001 134 Email: [EMAIL PROTECTED] Web : www.acslink.aone.net.au/actaa/iaa.htm A MapInfo Technology Partner ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 19 March 2002 11:32 Subject: MI-L Colour select > > I am wondering why I can select polygons in a table by a certain colour > style and yet in another table selecting by the same colour I get and error > message stating "Objectinfo: argument 2 out of range". > > I am using 6.5 > > Thanks for any help > Leo Bull > Green Triangle Forest Products > Mt Gambier > South Australia > > > > _______________________________________________________________________ > 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. --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
