<?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: How to calculate a string field with text and sequential numbers in ArcPro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17993#M1416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really am not a fan of using Python global in this context, but since you have already started down this path the easiest way to get what you want is to change the final line of the code in your screenshot:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PVT{:05}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rec&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 23:33:01 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-02-19T23:33:01Z</dc:date>
    <item>
      <title>How to calculate a string field with text and sequential numbers in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17991#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate a string&amp;nbsp;field for 223 selected points with text 'PVT' plus a sequential number like 'PVT0001'&amp;nbsp;then 'PVT0002' and so forth. What is the most efficient way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 23:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17991#M1414</guid>
      <dc:creator>JerryGarza</dc:creator>
      <dc:date>2020-02-19T23:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string field with text and sequential numbers in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17992#M1415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesnt really make sense as the field calculator wont work iteratively in that fashion. To be honest, create your 00001, 00002 in excel when concatenate with 'PVT' and paste the field into your table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 23:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17992#M1415</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-02-19T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string field with text and sequential numbers in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17993#M1416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really am not a fan of using Python global in this context, but since you have already started down this path the easiest way to get what you want is to change the final line of the code in your screenshot:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PVT{:05}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rec&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 23:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-calculate-a-string-field-with-text-and/m-p/17993#M1416</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-19T23:33:01Z</dc:date>
    </item>
  </channel>
</rss>

