AnsweredAssumed Answered

Label Expression Bug

Question asked by txrpls on Apr 19, 2013
Latest reply on Apr 22, 2013 by kenbuja
I have used the following example from the help file substitution my own fields:

def FindLabel ( [Parcel_No], [Owner_Name] ):   if  [Parcel_No]  >= 0:     return "<CLR red='255'><FNT size = '14'>" + unicode( [Owner_Name]) + "</FNT></CLR>"   else:     return [Owner_Name] 

The label shows in my feature class as:
      <CLR red='255'><FNT size = '14'>Doe, John & Linda</FNT></CLR>

not in the color red. It shows correctly in the verify box in the expression verification. Also, why do I have to use unicode([FIELD_NAME]) to avoid an error?