You can do it by combining following functions:

ObjectInfo(obj,attribute) -> returns Pen, Brush and other values about
graphical object (attribute 2 for pen value)

StyleAttr(style,attribute) -> returns one attribute of Pen, Brush etc.
value(attribute 1 for Pen width, 2 for Pen pattern, 4 for Pen color)

MakePen(width, pattern, color) -> returns Pen value
RGB(red, green, blue) -> returns color value used by MI

and for more complex selections:
PenPattern(pattern, isinterleaved) -> returns Pen pattern value w/
overlaping attribute
PenWidthToPoints(penwidth) -> returns pointsize for pen


So the following should select all object from <Your Table> drawn in red
color (including regions, ellipses etc. with red outline).

Select * From <Your Table> Where StyleAttr(ObjectInfo(obj, 2), 4) =
RGB(255,0,0)

Regards,
    Anssi


-----Original Message-----
From: Bull, Leo <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED] .' <[EMAIL PROTECTED]>
Date: 16. hein�kuuta 1999 11:25
Subject: MI Line Styles


>Further to Andy's question with a one-stop method of selecting all points
or
>all lines.   Is there a sql for selecting the same line styles from  a
table
>comprising  different lines styles.
>
>Thanks for any assistance.
>
>Leo Bull
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to