<?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: Stacking labels from within a single attribute field in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682467#M9275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i've tried running it again, but made sure all of my fields in the column had something in them, and it worked fine. I think it was coming up with the error because there were some null values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 14:20:51 GMT</pubDate>
    <dc:creator>JamesSiddle</dc:creator>
    <dc:date>2012-02-23T14:20:51Z</dc:date>
    <item>
      <title>Stacking labels from within a single attribute field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682465#M9273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its been touched on in some of the archived posts, but I can't seem to get this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to label some points using the contents of a single text field. I'm familiar with using vbnewline for doing this with seperate fields, its quite simple. But i'd like to be able to stack labels based on inserting a symbol of some description (e.g.&amp;nbsp; '/' or '*') into the single field&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Started 2010 / under construction / still waiting on management approval" to look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Started 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;under construction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;still waiting management approval&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the following vbscript example in an archived thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( [myField] ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FindLabel = Replace( [myField], "/", vbCrLf) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the expression editor says that using the Replace command is incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682465#M9273</guid>
      <dc:creator>JamesSiddle</dc:creator>
      <dc:date>2012-02-17T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking labels from within a single attribute field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682466#M9274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just tested using the script code you've posted and it works fine. I use ArcGIS 10 SP3. What's about you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workflow I use is: Layer Properties &amp;gt; check the Label features in this layer check box. Click the Expression button &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;check the Advanced check box&lt;/STRONG&gt;&lt;SPAN&gt; &amp;gt; copy the code into the Expression text box. This is it. I guess you have not checked the Advanced option, so the parser cannot be used. Also make sure that the VBScript is used for Parser: option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Function FindLabel ( [FieldName] )
FindLabel = Replace( [FieldName] , "/", vbCrLf)
End Function&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682466#M9274</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2021-12-12T04:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking labels from within a single attribute field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682467#M9275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i've tried running it again, but made sure all of my fields in the column had something in them, and it worked fine. I think it was coming up with the error because there were some null values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682467#M9275</guid>
      <dc:creator>JamesSiddle</dc:creator>
      <dc:date>2012-02-23T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking labels from within a single attribute field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682468#M9276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, James, glad it played out well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682468#M9276</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2012-02-23T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stacking labels from within a single attribute field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682469#M9277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recently ran across a label script that wraps text: &lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=12607"&gt;http://arcscripts.esri.com/details.asp?dbid=12607&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it counts characters and finds spaces so that the wrap starts in a logical place. You can adjust the length of the wrap. If your data have a typical length and are in one field, this might work. If your data have variable lengths, what you have would likely work better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stacking-labels-from-within-a-single-attribute/m-p/682469#M9277</guid>
      <dc:creator>MarkBoucher</dc:creator>
      <dc:date>2012-02-27T15:11:16Z</dc:date>
    </item>
  </channel>
</rss>

