Hello, 

I was wondering if there was a way of coloring the labels differently within
the same layer for different map objects. I have included a snippet as to
what I'm trying to do. Apparently I got no luck in trying to vary the color
as I loop through different objects.  Any help with this regard is
appreciated. You can email me to [EMAIL PROTECTED] 

Thanks in advance.

//BR
AH

Code Snippet:

        i = 0
        For i = 1 To UBound(intSMTableUniqueValue)
                Select * From ~work2 Where ECP = intSMTableUniqueValue(i)
And SM_1 <> 0 Group By SM_1, SM_2
                If SelectionInfo(SEL_INFO_NROWS) > 0 Then
                        
                        ReDim strSMUniqueVal(SelectionInfo(SEL_INFO_NROWS))
                        smUniqueQuery = TableInfo(0, TAB_INFO_NAME)
                        Add Map Window win_id Layer ~work2

                        strLableCmd = "Set Map Layer 1 Label "
                        strFont = "Font( " + "Arial" + ", 0, 9, " + Color(i)
+ " )"
                        strLableCmd = strLableCmd + strFont + " With (Cell +
chr$(10)+ chr$(10) + Site) Duplicates Off Auto On"

                Run command strLableCmd
                End If
        Next


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to