<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Label Expression in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628273#M8549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It worked! Thank you so much for your help!!! It is very much appreciated!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please click on the checkmark under the rating number to mark this thread as answered so that the thread will appear to everyone as closed and for the benefit of others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 16:44:41 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2012-01-19T16:44:41Z</dc:date>
    <item>
      <title>Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628266#M8542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am needing to label a map with owner names but I would like to trim the name to one character after a comma. I also have owner names that are not divided by a comma so I would like to trim them to a 13 characters. I am having trouble writing the expression for this. Any help would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628266#M8542</guid>
      <dc:creator>CaraMays</dc:creator>
      <dc:date>2012-01-19T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628267#M8543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am needing to label a map with owner names but I would like to trim the name to one character after a comma. I also have owner names that are not divided by a comma so I would like to trim them to a 13 characters. I am having trouble writing the expression for this. Any help would be great.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the field names involved?&amp;nbsp; Do all of the names have to fit in 13 characters?&amp;nbsp; Actual examples of names that are too long in each format and how you want them to be labeled would help for developing the VB Script code.&amp;nbsp; Most likely you will use the Split or InStr functions, but that is as far as I can say with the information you have given.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628267#M8543</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-01-19T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628268#M8544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The name of the attribute I am wanting to trim is [PartyName]. Example of how I want the name trimmed after a comma would be Huebner, Melvin and I would just like the label name to say Huebner, M. Names without commas such as Huebner Family Trust I would like short enough to fit within in my parcel and we have used 13 characters before. Does this give enough information? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628268#M8544</guid>
      <dc:creator>CaraMays</dc:creator>
      <dc:date>2012-01-19T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628269#M8545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the code below in the Label Expression field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Function FindLabel ( [PartyName] )
if InStr( [PartyName] , ",") &amp;gt; 0 Then
&amp;nbsp; myArray = Split( [PartyName] , ",")
&amp;nbsp; FindLabel = myArray(0) &amp;amp; ", " &amp;amp; LEFT(Trim(myArray(1)), 1) &amp;amp; "."
ElseIf Len( [PartyName] ) &amp;gt; 13 Then
&amp;nbsp; FindLabel = Left([PartyName], 13)
Else
&amp;nbsp; FindLabel = [PartyName]
End If
End Function
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628269#M8545</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T02:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628270#M8546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what we have used in the past. But I either get "Carriage reurns are not allowed in simple expressions" or "This expression contains an error".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( [PartyName]&amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Owner = [PartyName]&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if InStr ( 1 , Owner , "," ) &amp;gt; 1 then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyPos = InStr ( 1 , Owner , "," )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayChars =&amp;nbsp; Left ( Owner , MyPos + 2 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = DisplayChars&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = Left ( Owner , 13 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628270#M8546</guid>
      <dc:creator>CaraMays</dc:creator>
      <dc:date>2012-01-19T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628271#M8547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is what we have used in the past. But I either get "Carriage reurns are not allowed in simple expressions" or "This expression contains an error".&lt;BR /&gt;&lt;BR /&gt;Function FindLabel ( [PartyName]&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; Owner = [PartyName]&amp;nbsp; &lt;BR /&gt;&amp;nbsp; if InStr ( 1 , Owner , "," ) &amp;gt; 1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyPos = InStr ( 1 , Owner , "," )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayChars =&amp;nbsp; Left ( Owner , MyPos + 2 )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = DisplayChars&lt;BR /&gt;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = Left ( Owner , 13 )&lt;BR /&gt;&amp;nbsp; end if&lt;BR /&gt;End Function&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You must check the box for an Advanced Label expression to use either your code or my code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628271#M8547</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-01-19T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628272#M8548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It worked! Thank you so much for your help!!! It is very much appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628272#M8548</guid>
      <dc:creator>CaraMays</dc:creator>
      <dc:date>2012-01-19T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628273#M8549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It worked! Thank you so much for your help!!! It is very much appreciated!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please click on the checkmark under the rating number to mark this thread as answered so that the thread will appear to everyone as closed and for the benefit of others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628273#M8549</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-01-19T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628274#M8550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! This helped me greatly when trying to create a county plat book. One other thing I'm trying to do is use the name field, (TAO_NAME), and include the first initials of the owner's first names. For example I want "Doe, John &amp;amp; Mary" to appear on my map as "Doe, J &amp;amp; M" Or, I would really like to create a label expression that would label the first names first and the last name last. Both first and last names are currently all in the same field. So, for the above example, I'd like it to appear on my map as "John &amp;amp; Mary Doe" or "J &amp;amp; M Doe" with no commas. Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 15:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628274#M8550</guid>
      <dc:creator>DanHaasken</dc:creator>
      <dc:date>2012-12-07T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628275#M8551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all of your names have the "LastName, FirstName1 &amp;amp; FirstName2" syntax, you could create an array of the value, splitting each value by space:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myArray = Split(TAO_NAME, " ")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then having all of your elements in the array, just rearrange them and use only the characters you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Left(myArray(1), 1) &amp;amp; " &amp;amp; " &amp;amp; Left(myArray(3), 1) &amp;amp; " " &amp;amp; Left(myArray(0),(Len(myArray(0)) - 1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tested this code, so it is quite possible I forgot a paranthesis or comma here or there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 18:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/label-expression/m-p/628275#M8551</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2012-12-07T18:11:55Z</dc:date>
    </item>
  </channel>
</rss>

