<?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: Field Calculator in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679785#M38557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure. You can use the Python rjust() method. It pads it with spaces though, so use it carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x = !Township_R!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x.rjust(width[, fillchar])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;width = total string length after padding (be mindful of your field length)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fillchar (optional) = filler character, default is a space (leave this out if you want space)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if a record in Township_R is [ABC] then running this with a width of 5 (x.rjust(5)) will create [&amp;nbsp; ABC].&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 14:13:51 GMT</pubDate>
    <dc:creator>MayaThomas</dc:creator>
    <dc:date>2013-01-11T14:13:51Z</dc:date>
    <item>
      <title>Field Calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679783#M38555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to copy the 5-6-7 character in one field to another field, can anyone help me with this.&amp;nbsp; I used this &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;left( [Township_R], 2) to copy the first two characters but I'm stuck on the 5-6-7 characters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 13:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679783#M38555</guid>
      <dc:creator>DustinHolt</dc:creator>
      <dc:date>2013-01-11T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679784#M38556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mid( [Township_R], 5, 3 ) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 13:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679784#M38556</guid>
      <dc:creator>MayaThomas</dc:creator>
      <dc:date>2013-01-11T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679785#M38557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure. You can use the Python rjust() method. It pads it with spaces though, so use it carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x = !Township_R!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x.rjust(width[, fillchar])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;width = total string length after padding (be mindful of your field length)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fillchar (optional) = filler character, default is a space (leave this out if you want space)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if a record in Township_R is [ABC] then running this with a width of 5 (x.rjust(5)) will create [&amp;nbsp; ABC].&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 14:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator/m-p/679785#M38557</guid>
      <dc:creator>MayaThomas</dc:creator>
      <dc:date>2013-01-11T14:13:51Z</dc:date>
    </item>
  </channel>
</rss>

