<?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 mid in GeoGeeks Questions</title>
    <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825227#M29</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing a calculated field in Arcgis 10x desktop.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROOTID field is a parcel ID (from another organization).&amp;nbsp;&amp;nbsp; example:&amp;nbsp; 06-07- 43-0462-0000-0000&lt;/P&gt;&lt;P&gt;I'm changing the number in the field ASI_PID to be calculated to be:&amp;nbsp;&amp;nbsp;&amp;nbsp; 07&amp;nbsp; 43046200000000&lt;/P&gt;&lt;P&gt;ASI_PID is type: String and length=50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calc is:&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid([ROOTID],4,2)+" "+Mid([ROOTID],8,2)+Mid([ROOTID],11,4)+Mid([ROOTID],16,4)+Mid([ROOTID],21,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get:&amp;nbsp;&amp;nbsp; 07&amp;nbsp; 4-048-000-000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I don't want the dashes, and as you can see, I'm not adding any.&amp;nbsp; I'd like a space after the first two numbers.&amp;nbsp;&amp;nbsp; I tried changing how many numbers at the position (like 4,5) but it still puts in the dash and leaves out a number.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2019 23:51:45 GMT</pubDate>
    <dc:creator>kenWILKINS</dc:creator>
    <dc:date>2019-09-18T23:51:45Z</dc:date>
    <item>
      <title>mid</title>
      <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825227#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing a calculated field in Arcgis 10x desktop.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROOTID field is a parcel ID (from another organization).&amp;nbsp;&amp;nbsp; example:&amp;nbsp; 06-07- 43-0462-0000-0000&lt;/P&gt;&lt;P&gt;I'm changing the number in the field ASI_PID to be calculated to be:&amp;nbsp;&amp;nbsp;&amp;nbsp; 07&amp;nbsp; 43046200000000&lt;/P&gt;&lt;P&gt;ASI_PID is type: String and length=50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calc is:&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid([ROOTID],4,2)+" "+Mid([ROOTID],8,2)+Mid([ROOTID],11,4)+Mid([ROOTID],16,4)+Mid([ROOTID],21,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get:&amp;nbsp;&amp;nbsp; 07&amp;nbsp; 4-048-000-000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I don't want the dashes, and as you can see, I'm not adding any.&amp;nbsp; I'd like a space after the first two numbers.&amp;nbsp;&amp;nbsp; I tried changing how many numbers at the position (like 4,5) but it still puts in the dash and leaves out a number.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 23:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825227#M29</guid>
      <dc:creator>kenWILKINS</dc:creator>
      <dc:date>2019-09-18T23:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: mid</title>
      <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825228#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python parser&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;rootid &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'06-07- 43-0462-0000-0000'&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# which would be !rootid! in the expression&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; rootid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"-"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'07 43046200000000'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825228#M30</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: mid</title>
      <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825229#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.   I don’t speak Python.    Do I add this in the codeblock with my expression in the calc field ?   See pic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken Wilkins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hurricane, WV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 00:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825229#M31</guid>
      <dc:creator>kenWILKINS</dc:creator>
      <dc:date>2019-09-19T00:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: mid</title>
      <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825230#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;tick python on&lt;/P&gt;&lt;P&gt;dump your expression from the last line and replace with mine&lt;/P&gt;&lt;P&gt;there is no prelogic code block&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; !ROOTID!&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"-"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&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>Thu, 19 Sep 2019 00:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825230#M32</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-09-19T00:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: mid</title>
      <link>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825231#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp;&amp;nbsp;&amp;nbsp; I ran mine first to get the numbers, then ran yours to eliminate the dashes. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 01:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geogeeks-questions/mid/m-p/825231#M33</guid>
      <dc:creator>kenWILKINS</dc:creator>
      <dc:date>2019-09-19T01:29:43Z</dc:date>
    </item>
  </channel>
</rss>

