<?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: Simple VBScript Label Expression for labelling Highway names on a map in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540444#M7417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wanted to something similar with split and even though this is not exactly the same question, I wanted to post my result because your solution helped me with mine (thanks!).&amp;nbsp; I have a field in a shapefile export that contains the compliments for a Fiber separated by a | character.&amp;nbsp; My solution was to create the first part of the label then to iterate through the elements in the split to keep adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( [TOTALFOOTA], [ROUTE], [UNITDESCRI], [FIBERCOMPL] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = SPLIT([FIBERCOMPL], "|")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TOTALFOOTA] &amp;amp; "'" &amp;amp; vbCrLf&amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ROUTE] &amp;amp; vbCrLf&amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UNITDESCRI]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each x In a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = b &amp;amp; vbcrlf&amp;amp; x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 16:26:30 GMT</pubDate>
    <dc:creator>PaulScipione1</dc:creator>
    <dc:date>2013-01-10T16:26:30Z</dc:date>
    <item>
      <title>Simple VBScript Label Expression for labelling Highway names on a map</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540442#M7415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;What is the VBScript Label Expression for labelling Highway names - the numerical text only (which is usually the last one to three digits of a road name) in ArcGIS 10?&lt;BR /&gt;&lt;BR /&gt;For example, I want to label "Highway 404", or "Highway 1" on a map, but want to label them with an oval symbol with the highway number on it.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I found the convert labels to annotation is not efficient if you have so many roads on a map (Like it is not efficient if I have to change the highway names one-by-one). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I don't have solid knowledge in programming codes, and therefore, need some help that would enhance my cartography workflow in school work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So what I know is very limited, like I only know how to use the label expressions of UCase([Name]), or LCase([Name]).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 20:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540442#M7415</guid>
      <dc:creator>KittyYiu</dc:creator>
      <dc:date>2012-06-12T20:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Simple VBScript Label Expression for labelling Highway names on a map</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540443#M7416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To label highways with specific symbol find required text symbol in Symbol Selector:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15158[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to extract a highway number from string in pattern "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Highway X(XX)&lt;/SPAN&gt;&lt;SPAN&gt;" use simple expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Mid([Name], 9)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a string before a number has changing length or more than one word, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Advanced &lt;/SPAN&gt;&lt;SPAN&gt;in Expression section and use the code which split name into chunks divided by space " " and take the last one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Function FindLabel ( [NAME] )
&amp;nbsp; a = Split([NAME], " ")
&amp;nbsp; b = a(UBound(a))
&amp;nbsp; FindLabel = b
End Function&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540443#M7416</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2021-12-11T23:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple VBScript Label Expression for labelling Highway names on a map</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540444#M7417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wanted to something similar with split and even though this is not exactly the same question, I wanted to post my result because your solution helped me with mine (thanks!).&amp;nbsp; I have a field in a shapefile export that contains the compliments for a Fiber separated by a | character.&amp;nbsp; My solution was to create the first part of the label then to iterate through the elements in the split to keep adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( [TOTALFOOTA], [ROUTE], [UNITDESCRI], [FIBERCOMPL] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = SPLIT([FIBERCOMPL], "|")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TOTALFOOTA] &amp;amp; "'" &amp;amp; vbCrLf&amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ROUTE] &amp;amp; vbCrLf&amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UNITDESCRI]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each x In a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = b &amp;amp; vbcrlf&amp;amp; x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 16:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/simple-vbscript-label-expression-for-labelling/m-p/540444#M7417</guid>
      <dc:creator>PaulScipione1</dc:creator>
      <dc:date>2013-01-10T16:26:30Z</dc:date>
    </item>
  </channel>
</rss>

