Adding text to a number in label expression

8529
3
Jump to solution
06-30-2015 08:19 AM
AlmazNaizghi
New Contributor III

Hi,

I was able to add a text below the number in Label Expression when I was using ArcGIS 10.2.1. However, recently I upgraded my ArcGIS to 10.3.1 and I was not able to do it. Please see below, the screen shot of what I did with the error message. I look forward for any help to what the case could be? Thank!

0 Kudos
1 Solution

Accepted Solutions
TomSellsted
MVP Regular Contributor

Almaz,

For your expression you could use:

[Area_Acres] & vbcrlf & "Acres"

Using the vbscript option.

Regards,

Tom

View solution in original post

3 Replies
TomSellsted
MVP Regular Contributor

Almaz,

For your expression you could use:

[Area_Acres] & vbcrlf & "Acres"

Using the vbscript option.

Regards,

Tom

IanMurray
Frequent Contributor

Hi Almaz,

If Area_Acres is a numeric type field, you will need to change it to:

str([Area_Acres]) + '/n' + 'Acres'

Otherwise its seems there is a problem with your install of the numpy module.  ArcMap 10.3 is supposed to use the 1.7.1 version and is supposed to be installed on your computer with 10.3 if it is not detected, though if you did a custom install, you could have skipped it. 

ArcGIS 10.3.x for Desktop system requirements—Help | ArcGIS for Desktop

If this is indeed the issue, you might look at downloading and installing the module seperately instead of reinstalling ArcGIS 10.3

numpy 1.7.1 : Python Package Index

AlmazNaizghi
New Contributor III

Hi Ian,

I tried with:  str([Area_Acres]) + '/n' + 'Acres'

It didn't work and gave me error message.

I will double check if the 1.7.1 version has been installed to my computer with 10.3.

Thanks,