Multiline multicolred labels

2861
2
Jump to solution
08-22-2014 12:47 PM
HemantAngarkar2
Occasional Contributor

I am trying to create multiline multicolored labels on States layer of template data; following code is not working.

 

Function FindLabel ( [STATE_NAME], [STATE_ABBR], [SUB_REGION] )

  FindLabel = "<CLR red = '255'>" + [STATE_NAME] &  vbnewline & "<CLR red = '255'>" + [STATE_ABBR] & vbnewline & "<CLR red = '255'>" + [SUB_REGION]

End Function

 

Kindly help.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

This works

Function FindLabel ( [STATE_NAME], [STATE_ABBR] , [SUB_REGION]  )

  FindLabel ="<CLR red = '255'>" & [STATE_NAME] & "</CLR>"  & vbnewline  & "<CLR green = '255'>" & [STATE_ABBR] & "</CLR>"  & vbnewline  & "<CLR blue = '255'>" & [SUB_REGION]  & "</CLR>"

End Function

View solution in original post

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

This works

Function FindLabel ( [STATE_NAME], [STATE_ABBR] , [SUB_REGION]  )

  FindLabel ="<CLR red = '255'>" & [STATE_NAME] & "</CLR>"  & vbnewline  & "<CLR green = '255'>" & [STATE_ABBR] & "</CLR>"  & vbnewline  & "<CLR blue = '255'>" & [SUB_REGION]  & "</CLR>"

End Function

0 Kudos
HemantAngarkar2
Occasional Contributor

Thanks Ken

0 Kudos