I have a label that I need to format using label expression. The label looks like this:
EVA09C
and I want the outcome to be this:
EA09C
Can I tell the label expression to skip the V in there?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI have a label that I need to format using label expression. The label looks like this:
EVA09C
and I want the outcome to be this:
EA09C
Can I tell the label expression to skip the V in there?
One option would be this (replace FIELDNAME with the actual name of your field):
Replace([FIELDNAME], "V", "")
or
[FIELDNAME].replace("V", "")
if you prefer the Python parser.
Another solution that removes the second character:
def FindLabel ( [FIELDNAME] ):
s= [FIELDNAME]
return s[0]+s[2:]
[Python parser]