Composing Label from Multiple attributes????

10/27/2017 1:59:21 AM
Total Posts 17

Composing Label from Multiple attributes????

Dear Forum,,

Is there a possibility to compose labels from multiple attributes?

For Instance: My attributes table have two columns LOC and SUB_LOC. I want to label a feature as Sector 1, Noida where Sector 1 is SUB_LOC and Noida is LOC. How can i do that...

10/30/2017 4:38:42 AM
MVP
Total Posts 323

Re: Composing Label from Multiple attributes????

Use the LabelExpression property, it accepts VBScript operators and functions:

layer.LabelExpression = "SUB_LOC & \",\"  & LOC";

 

 

10/30/2017 6:01:31 AM
Total Posts 17

Re: Composing Label from Multiple attributes????

Its working....

 

 

Thank you so much...