AnsweredAssumed Answered

How to slice a word in the label expression

Question asked by peterverst on Dec 7, 2016
Latest reply on Dec 8, 2016 by jborgion


I have a field with city names and I want to slice the name in the label expression to only the 1st character.

I want to do this in python. looking at the internet i have this but it is not working:

def Label ( [CityName] ):

     s = [CityName]

     s1 = s[1:]

     return s1

i am working with arcgis for desktop 10.3.1


greetings Peter