I'm learning how to label with VBScript. I have to create a stacked label that contains a special character (<) and uses format tags. This is the code I'm using:
Function FindLabel ( [PCELabel1], [PCEValue1], [PCELAbel2], [PCEValue2] )
theFirstPart = [PCELabel1] & Replace( [PCEValue1],"<","<")
theSecondPart1 = [PCELAbel2]
theSecondPart2 = "<FNT name = 'Arial' size = '10'>" & "<BOL>" & "<ITA>" & [PCEValue2] & "</ITA>" & "</BOL>" & "</FNT>"
FindLabel = theFirstPart & vbnewline & theSecondPart1 & theSecondPart2
End Function
When I click "Verify" in the Label Expression Dialog Box I get exactly what I'm looking for, but when hit "OK" and "Apply" in the Layer Properties Dialog Box to place the labels I get:
GS-4-2014 (23) <0.37
GS-4-2014
(33) <FNT name = 'Arial' size = '10'><BOL><ITA>0
My Data source is a feature class in a file based personal geodatabase. I've attached it for reference. Can anyone please explain why this is happening, and how to fix it? Thanks,
Sol