How to remove characters in a label?

2296
1
02-20-2019 05:39 AM
Labels (4)
CharlesSchwarz
New Contributor

How can I have the labeling REMOVE the last 10 characters in a label?

0 Kudos
1 Reply
JayJohnsonWashoeCounty
Occasional Contributor III

Charles - you can use the following VBScript label expression to do that:

Function FindLabel ( [COMMENT] )
strL = (LEN([COMMENT])-10)
if strL > 0 then
FindLabel = MID([COMMENT], 1, strL)
else
FindLabel = [COMMENT]
end if
End Function

See screen capture below.  Just replace

Jay
Washoe County GIS
0 Kudos