Jump to content

 
Photo

Writing a VBScript Expression for Labeling

- - - - -

  • Please log in to reply
2 replies to this topic

#1
cmdrico7812

cmdrico7812

    Key Contributor

  • Validated Member
  • PipPipPip
  • 68 posts
  • United States

I need to label parcels in my township with quite a bit of information including, Owner Name, Owner Address (Street, City, and State), Parcel Acreage, and Parcel Value. I know you can write an expression in VBScript for labeling features, but what I want to do is make it so the Owner Name is on its own line, then the address on its own line, then acreage on its own line, then the value on its own line. How do I write an expression that would do this? Currently, the only way I can figure to do it is to have it all on one line and I don't want to do that. Thanks in advance... this problem has been bugging me all morning.

Eric

#2
paul

paul

    Key Contributor

  • Validated Member
  • PipPipPip
  • 75 posts
  • Location:Logan, UT
  • Interests:Running, telemark skiing, GIS
  • United States

Eric,
Try using "vbNewLine". For example, if I wanted my Gate_ID attribute on one line and my Acres attribute below it, the expression would be:

[Gate_ID] & vbNewLine & [Acres]

Hope that's what you need.

--Paul

#3
cmdrico7812

cmdrico7812

    Key Contributor

  • Validated Member
  • PipPipPip
  • 68 posts
  • United States

Yeah, that's the ticket! Thanks. The map looks much better now.

Eric




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->