<?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: Removing Zeros From a Field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869193#M34063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this bit of code on the Microsoft Community page that should work in the Field Calculator using VBScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming there is no space character in the data:&lt;/P&gt;&lt;P&gt;Replace(&lt;STRONG&gt; LTRIM(Replace( fieldName, "0", " ")),&lt;/STRONG&gt; " ", "0")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part in bold replace all zeros by spaces, and then, left-trim that result, ie, remove starting spaces. The external Replace replaces the spaces left in the string to their initial 0 character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 20:29:17 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2019-03-14T20:29:17Z</dc:date>
    <item>
      <title>Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869192#M34062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone remember how to remove zeros from in front of a number in a field. For example, I have 00012. I want 12.&lt;/P&gt;&lt;P&gt;I forgot the formula in the field calculator.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869192#M34062</guid>
      <dc:creator>MichelleCouden</dc:creator>
      <dc:date>2019-03-14T20:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869193#M34063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this bit of code on the Microsoft Community page that should work in the Field Calculator using VBScript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming there is no space character in the data:&lt;/P&gt;&lt;P&gt;Replace(&lt;STRONG&gt; LTRIM(Replace( fieldName, "0", " ")),&lt;/STRONG&gt; " ", "0")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part in bold replace all zeros by spaces, and then, left-trim that result, ie, remove starting spaces. The external Replace replaces the spaces left in the string to their initial 0 character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869193#M34063</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2019-03-14T20:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869194#M34064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In python you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!field_name!.lstrip('0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That'll &lt;EM&gt;strip&lt;/EM&gt;&amp;nbsp;off any leading zeros:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/439512_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/439513_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/439520_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 21:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869194#M34064</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-03-14T21:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869195#M34065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Used to be that we could simply multiply the text as a number by 1&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;000012 x 1 = 12&lt;/P&gt;&lt;P&gt;Trying to find out what this might look like today from within ArcPro is up to you &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2019 18:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869195#M34065</guid>
      <dc:creator>MatthewDuffy</dc:creator>
      <dc:date>2019-05-01T18:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869196#M34066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/migrated-users/4422"&gt;Joe Borgione&lt;/A&gt;, this is helpful and I remain grateful for your input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2019 18:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/869196#M34066</guid>
      <dc:creator>MatthewDuffy</dc:creator>
      <dc:date>2019-05-01T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1016445#M35959</link>
      <description>&lt;P&gt;This thread popped up in my activity log today. You can do the same calculation in pro as I described above or use the int() function :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1610558667758.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3744iA6798653BB9361AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1610558667758.png" alt="JoeBorgione_0-1610558667758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_1-1610558737351.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3745i16420F1EF7E3A838/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_1-1610558737351.png" alt="JoeBorgione_1-1610558737351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I guess the int() function would have worked originally too....&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 17:26:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1016445#M35959</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-01-13T17:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1072601#M42506</link>
      <description>&lt;P&gt;Is there an Arcade solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1072601#M42506</guid>
      <dc:creator>DavidWheelock2</dc:creator>
      <dc:date>2021-06-25T14:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros From a Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1072605#M42507</link>
      <description>&lt;P&gt;Don't know offhand:&amp;nbsp; &lt;A href="https://developers.arcgis.com/arcade/function-reference/" target="_self"&gt;check here&lt;/A&gt; and take a look...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-zeros-from-a-field/m-p/1072605#M42507</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-25T14:47:19Z</dc:date>
    </item>
  </channel>
</rss>

