I do not see any obvious setting for stacking labels in ArcMap (ArcView license).
Am I missing something or do i have to write a complex expression to stack my labels?
Answer
This works:
Function FindLabel([Name])
var = [Name]
result = ""
splitStr = Split(var, chr(32))
for i = 0 to UBound(splitStr)
tmpStr = Trim(splitStr(i))
if len(tmpStr) > 0 then
if result = "" then
result = tmpStr
else
result = result & vbnewline & tmpstr
end if
end if
splitStr(i) = tmpStr
next
FindLabel = result
End Function
No comments:
Post a Comment