<?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 Expression to label coded values with a name in 911 GIS Questions</title>
    <link>https://community.esri.com/t5/911-gis-questions/expression-to-label-coded-values-with-a-name/m-p/735795#M27</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a label class expression that will allow me to label polygons with a name (text code) rather than the number code in the source field. I have tried two options using a select case and elseif function, but I can't get it to work. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Function FindLabel ([Type])&lt;BR /&gt;If '1' Then&lt;BR /&gt;Findlabel = 'SR'&lt;BR /&gt;ElseIf '2' Then&lt;BR /&gt;Findlabel = 'HG'&lt;BR /&gt;End If&lt;BR /&gt;End Function&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;or alternatively:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Function FindLabel [Type]&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Select Case&lt;BR /&gt;Case '1' output = 'SR'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case '2' output = 'rg'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case '3' output = 'sg'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case Else output = [Type]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;End Select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 May 2019 07:39:27 GMT</pubDate>
    <dc:creator>TimEatwell</dc:creator>
    <dc:date>2019-05-12T07:39:27Z</dc:date>
    <item>
      <title>Expression to label coded values with a name</title>
      <link>https://community.esri.com/t5/911-gis-questions/expression-to-label-coded-values-with-a-name/m-p/735795#M27</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a label class expression that will allow me to label polygons with a name (text code) rather than the number code in the source field. I have tried two options using a select case and elseif function, but I can't get it to work. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Function FindLabel ([Type])&lt;BR /&gt;If '1' Then&lt;BR /&gt;Findlabel = 'SR'&lt;BR /&gt;ElseIf '2' Then&lt;BR /&gt;Findlabel = 'HG'&lt;BR /&gt;End If&lt;BR /&gt;End Function&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;or alternatively:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Function FindLabel [Type]&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Select Case&lt;BR /&gt;Case '1' output = 'SR'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case '2' output = 'rg'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case '3' output = 'sg'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Case Else output = [Type]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;End Select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2019 07:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/911-gis-questions/expression-to-label-coded-values-with-a-name/m-p/735795#M27</guid>
      <dc:creator>TimEatwell</dc:creator>
      <dc:date>2019-05-12T07:39:27Z</dc:date>
    </item>
  </channel>
</rss>

