<?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: Basic VB or Python help needed in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539412#M42153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Right click on field_len column &amp;gt; Field Calculator &amp;gt; len(!String Field!)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Right click on the other column &amp;gt; Field Calculator &amp;gt; !String Field![0:10]&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and the process failed and the error I get is 99999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I manually corrected the Account Numbers so they are 10 characters if available, now just need to get the counts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a word doc with screen captures of errors and abbreviated table I am trying to run calculations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Acctnum_Len should return a maximum of 10 and acctID_len should return a maximum of 14&amp;nbsp; (These fields are to give a count of how many characters in Account Identifier and Account Number)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sandra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 18:31:25 GMT</pubDate>
    <dc:creator>SandraHanslip</dc:creator>
    <dc:date>2012-07-25T18:31:25Z</dc:date>
    <item>
      <title>Basic VB or Python help needed</title>
      <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539410#M42151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have 2 tasks for which I cannot find the right syntax and really would like some help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First I have a column with strings and I need to calculate how many characters are in each string and put that number in my &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;field_len&lt;/SPAN&gt;&lt;SPAN&gt; column. Sounds simple - and sad to say, I did it once but cannot pull it out of my hat again.:cool: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(There are two of these counts and when I ran another calculation on a separate field, the numbers switched ie: in a field where most values were 14 they are now 10 and the field where the values should and used to be mostly 10, they are now 14.) So I just want to run the character counts again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, I have a column (string) which I need to take the 1st 10 characters and copy over to another field - actually, did this once as well but it left over 1000 blank - for no discernible reason. Copy and pasting these one by one is gonna take forever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or directions are greatly appreciated. I can usually find my way through Python or VB but I just can't get there on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sandra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539410#M42151</guid>
      <dc:creator>SandraHanslip</dc:creator>
      <dc:date>2012-07-24T21:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Basic VB or Python help needed</title>
      <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539411#M42152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Right click on field_len column &amp;gt; Field Calculator &amp;gt; len(!String Field!)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Right click on the other column &amp;gt; Field Calculator &amp;gt; !String Field![0:10]&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539411#M42152</guid>
      <dc:creator>SolomonPulapkura</dc:creator>
      <dc:date>2012-07-24T21:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Basic VB or Python help needed</title>
      <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539412#M42153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Right click on field_len column &amp;gt; Field Calculator &amp;gt; len(!String Field!)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Right click on the other column &amp;gt; Field Calculator &amp;gt; !String Field![0:10]&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and the process failed and the error I get is 99999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I manually corrected the Account Numbers so they are 10 characters if available, now just need to get the counts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a word doc with screen captures of errors and abbreviated table I am trying to run calculations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Acctnum_Len should return a maximum of 10 and acctID_len should return a maximum of 14&amp;nbsp; (These fields are to give a count of how many characters in Account Identifier and Account Number)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sandra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 18:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539412#M42153</guid>
      <dc:creator>SandraHanslip</dc:creator>
      <dc:date>2012-07-25T18:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Basic VB or Python help needed</title>
      <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539413#M42154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the Field Calculator dialog select Python parser at the top instead of VB and try again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only other thing I would check is the length and type of the acctID_len and Acctnum_Len fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If they are TEXT fields make sure the field length is not less than the number of characters it will hold.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 20:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539413#M42154</guid>
      <dc:creator>SolomonPulapkura</dc:creator>
      <dc:date>2012-07-25T20:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Basic VB or Python help needed</title>
      <link>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539414#M42155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In the Field Calculator dialog select Python parser at the top instead of VB and try again.&lt;BR /&gt;&lt;BR /&gt;The only other thing I would check is the length and type of the acctID_len and Acctnum_Len fields.&lt;BR /&gt;If they are TEXT fields make sure the field length is not less than the number of characters it will hold.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, thank you again. I have already checked all of those and I just can't get the Acctnum_Len field calculator to count the characters in the account number field. I did it before for both fields and it was not difficult but I just can't get there again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's really strange that they have reversed themselves. Maybe I'll just switch the names of the *_len fields;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sandra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 20:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/basic-vb-or-python-help-needed/m-p/539414#M42155</guid>
      <dc:creator>SandraHanslip</dc:creator>
      <dc:date>2012-07-25T20:20:43Z</dc:date>
    </item>
  </channel>
</rss>

