<?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 Add a leading character to a string in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128285#M7384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Long story short, I'm trying to get County FIPS data to match from one table to the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One table has a string field with 3 character county FIPS codes, the other table has a longer codes where a number corresponding to each state precedes the 3 digit county code. For instance, Autauga County, Alabama is 1001 in one database but 001 in the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about adding a leading character to the string 001? (I figure part of the solution is to select each state and then run the field calculator on each selection, but flummoxed on how to form the expression.) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 05:39:18 GMT</pubDate>
    <dc:creator>ChristopherEdwards</dc:creator>
    <dc:date>2014-11-24T05:39:18Z</dc:date>
    <item>
      <title>Add a leading character to a string</title>
      <link>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128285#M7384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Long story short, I'm trying to get County FIPS data to match from one table to the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One table has a string field with 3 character county FIPS codes, the other table has a longer codes where a number corresponding to each state precedes the 3 digit county code. For instance, Autauga County, Alabama is 1001 in one database but 001 in the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about adding a leading character to the string 001? (I figure part of the solution is to select each state and then run the field calculator on each selection, but flummoxed on how to form the expression.) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 05:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128285#M7384</guid>
      <dc:creator>ChristopherEdwards</dc:creator>
      <dc:date>2014-11-24T05:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add a leading character to a string</title>
      <link>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128286#M7385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcMap:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a STATEFIPS field (Text with a length of 2) in your layer.&lt;/LI&gt;&lt;LI&gt;Select your States and assign the State component of the FIPS code.&lt;/LI&gt;&lt;LI&gt;Create new field (Text with a length of 5) for example FINALFIPS.&lt;/LI&gt;&lt;LI&gt;Use the Field Calculator to concatenate the values:&amp;nbsp; [STATEFIPS] + [FIPSVALUES]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that FIPSVALUES is the name of your &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3 character county FIPS code &lt;/SPAN&gt;field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 05:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128286#M7385</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-11-24T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add a leading character to a string</title>
      <link>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128287#M7386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not only was this helpful but now reading your reply I see that basically that was already done but didn't understand what I was reading. So thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 06:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/add-a-leading-character-to-a-string/m-p/128287#M7386</guid>
      <dc:creator>ChristopherEdwards</dc:creator>
      <dc:date>2014-11-24T06:10:15Z</dc:date>
    </item>
  </channel>
</rss>

