<?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 Field Calculator - Calculate string length using python syntax. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282601#M21793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to calculate the length of a string in the field calculator using Python syntax.&amp;nbsp; Normally this is done as len(stringValue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The calculator shows a function .len()&amp;nbsp; My question is how is this intended to be used?&amp;nbsp; I can't seem to find the right syntax.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 22:18:03 GMT</pubDate>
    <dc:creator>BenFerguson</dc:creator>
    <dc:date>2013-10-25T22:18:03Z</dc:date>
    <item>
      <title>Field Calculator - Calculate string length using python syntax.</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282601#M21793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to calculate the length of a string in the field calculator using Python syntax.&amp;nbsp; Normally this is done as len(stringValue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The calculator shows a function .len()&amp;nbsp; My question is how is this intended to be used?&amp;nbsp; I can't seem to find the right syntax.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 22:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282601#M21793</guid>
      <dc:creator>BenFerguson</dc:creator>
      <dc:date>2013-10-25T22:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator - Calculate string length using python syntax.</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282602#M21794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the value is coming from a field then the field name needs to be contained in square brackets:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Len( [Field] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at thus handy guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.esri.com/news/arcuser/0405/files/fieldcalc_1.pdf"&gt;http://www.esri.com/news/arcuser/0405/files/fieldcalc_1.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 08:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282602#M21794</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-10-27T08:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator - Calculate string length using python syntax.</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282603#M21795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For Python use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;len(!FieldName!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brackets is only for VB Script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 20:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-calculate-string-length-using/m-p/282603#M21795</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-27T20:58:15Z</dc:date>
    </item>
  </channel>
</rss>

