+ Reply to Thread
Results 1 to 3 of 3

Thread: ArcGIS 10: Label Expression - The expression contains an error. How to solve it?

  1. #1
    Scott Chang
    Join Date
    May 2010
    Posts
    191
    Points
    2
    Answers Provided
    0


    0

    Default ArcGIS 10: Label Expression - The expression contains an error. How to solve it?

    Hi all,

    I have the following VB script:
    Function FindLabel ( [FtMcNair7Pts-Edit31Oct2011.Benzene]) if
    ( [FtMcNair7Pts-Edit31Oct2011.Benzene] >100) then
    FindLabel = ( [FtMcNair7Pts-Edit31Oct2011.Benzene])
    end if
    End Function

    When I tested it, I got the following error: The expression contains an error. Modify the expression and try again.
    I have no ideas how to solve this error. Please help and advise me how to solve this error.

    Thanks,
    Scott Chang
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	ExpressionBenzene-sc.JPG‎
Views:	109
Size:	163.5 KB
ID:	13217  
    Last edited by ScottChang25; 04-03-2012 at 10:40 AM.

  2. #2
    Scott Chang
    Join Date
    May 2010
    Posts
    191
    Points
    2
    Answers Provided
    0


    0

    Default Re: ArcGIS 10: Label Expression - The expression contains an error. How to solve it?

    Attribute Table is attached here:
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	AttributeTable-McNair.JPG‎
Views:	72
Size:	151.7 KB
ID:	13219  

  3. #3
    Mark Fawkes
    Join Date
    Jun 2010
    Posts
    29
    Points
    1
    Answers Provided
    0


    0

    Default Re: ArcGIS 10: Label Expression - The expression contains an error. How to solve it?

    ?Should the expession be [field name] (i.e. benzene) rather than [MXD name.field name] ?

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts