Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
Glad to help. Don't forget to click the check mark to signify the question was answered.
That was it! Thanks. Would never have figured that out.Enrique
I tried both, but it just prints out the syntax? It's a basic map that I added a text box to. when I try to format color though Change Symbol button, all the text changes. I just want certain words to be blue.
Do any of the labels contain the characters "&" or "<"? If so, these are special characters that interfere with the formatting tags. You have to replace them with their character codes of & and < like this Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
Oh, wait a minute what you did should work.Try using ' instead of "
I added a text box to a map and want to format certain parts of the text. I followed the the examples on how to change color but all that shows up is the actual syntax. nothing changes.for example, <CLR red ="255">Depaul</CLR> doesn't change the color red, it just reads as is?is there something I am doing wrong? Using ArcMap 10.0thanksEnrique
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.