I have label class script question

312
1
11-17-2017 12:43 PM
MichaelCunnings
New Contributor II

I am much more familiar with VB script, so preferably in VB.

I would like to write an expression in the label class expression window to strip a word out for labeling purposes (ArcGIS Pro), without editing the actual field. In my case I would like to removed the word "Highway" from the label class. I have a script I use to strip all letters and label only the numbered highways, but this does not work for highways labeled with a letter.

In other words if the field is Highway DD, I just want the label to display as DD.

Tags (2)
0 Kudos
1 Reply
DarrenWiens2
MVP Honored Contributor

Can you just replace the word "Highway " (include space) with nothing (i.e. "")? See the examples here for replace syntax: Specify text for labels—ArcGIS Pro | ArcGIS Desktop 

0 Kudos