Hi Paul, It's probably one the "classic" mistakes. The action arguments for both the ObjectInfo and StyleAttr functions (and most others) are overloaded, so your expression may be any one of the below, depending on the object type : Line-like objects: StyleAttr(ObjectInfo(obj,OBJ_INFO_PEN),PEN_COLOR) Region-like objects: StyleAttr(ObjectInfo(obj,OBJ_INFO_PEN),PEN_COLOR) - color of perimeter line Points: StyleAttr(ObjectInfo(obj,OBJ_INFO_SYMBOL),SYMBOL_ANGLE) Texts: StyleAttr(ObjectInfo(obj,OBJ_INFO_TEXTFONT),FONT_FORECOLOR) You don't specify what type of objects you're dealing with, but if it's points, 0 means no rotation, not the color black. In that case the expression would have to be: StyleAttr(ObjectInfo(obj,2),2); the latter 2 for SYMBOL_COLOR Best regards Lars Nielsen ********************************************************** Lars Nielsen [EMAIL PROTECTED] Development Manager, MapXtreme iGIS Specialist Kampsax Geoplan Odense http://www.mapinfo.dk Authorized MapInfo Distributor in Denmark & Norway Address: Rugaardsvej 55, DK-5000 Odense C Telephone: +45 6313-5000 Facsimile +45 6313-5090 ********************************************************** Paul Middleton <[EMAIL PROTECTED] Til: [EMAIL PROTECTED] .gov.au> cc: Sendt af: Vedr.: MI-L RGB codes [EMAIL PROTECTED] onsmag.com 10-11-00 06:05 Besvar venligst til Paul Middleton Hi all, I need to find the RGB code for each object in a table, I've tried the following the following the SELECT COLUMN section of an SQL on the table: StyleAttr(ObjectInfo(obj,2),4) and get ' 0 ' for all objects. What am i doing wrong. Regards Paul Middleton GIS Manager Eurobodalla Shire Council P.O Box 99, Moruya NSW, 2537, Australia E-mail: [EMAIL PROTECTED] URL: http://www.esc.nsw.gov.au Phone (02) 44741270 FAX (02) 44741234 DX 4873 MORUYA _______________________________________________________________________ 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, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
