AnsweredAssumed Answered

Pythn to TextWrap

Question asked by ReneeR on Sep 17, 2013
Latest reply on Sep 26, 2013 by msayler
I am using MapTips (Layer Properties > Display > Display Expression).  I would like to use the advanced expression window to write a script using Python TextWrap.  Field string needs to be wrapped +-40 characters with no word split.  Attribute field is named BODY.  Unfortunately, I find the python.org page (syntax/example) much harder to read than ESRI's.  Has anyone attempted this?

def FindLabel ( [Body] ):   return [Body]

Outcomes