<?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 Using Field Calculator vb to check for name with /n in the string in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256006#M1617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am calculating values for a field (Score) based upon the names from another field (Modified). One name is "blaugh\nblaugh". Field Calculator keeps treating the name as having a new line command.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have tried using Like, Right, Contains, etc but the Field calculator does not seem to be able to use those commands. I am stumped.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex1: elseif [Modified] = "blaugh&lt;STRONG&gt;\n&lt;/STRONG&gt;blaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex2: elseif Right( [Modified], -6) = "blaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex3: elseif [Modified] LIKE "*nblaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using vb in ModelBuilder and ArcCatalog 10.3.1&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 19:17:43 GMT</pubDate>
    <dc:creator>TiffanySelvidge1</dc:creator>
    <dc:date>2016-01-07T19:17:43Z</dc:date>
    <item>
      <title>Using Field Calculator vb to check for name with /n in the string</title>
      <link>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256006#M1617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am calculating values for a field (Score) based upon the names from another field (Modified). One name is "blaugh\nblaugh". Field Calculator keeps treating the name as having a new line command.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have tried using Like, Right, Contains, etc but the Field calculator does not seem to be able to use those commands. I am stumped.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex1: elseif [Modified] = "blaugh&lt;STRONG&gt;\n&lt;/STRONG&gt;blaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex2: elseif Right( [Modified], -6) = "blaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Ex3: elseif [Modified] LIKE "*nblaugh" then Score =7&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using vb in ModelBuilder and ArcCatalog 10.3.1&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 19:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256006#M1617</guid>
      <dc:creator>TiffanySelvidge1</dc:creator>
      <dc:date>2016-01-07T19:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator vb to check for name with /n in the string</title>
      <link>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256007#M1618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14521950112926602" data-renderedposition="27.99715805053711_7.997159004211426_912_15" jivemacro_uid="_14521950112926602"&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;elseif InStr([Modified], vbNewLine)&lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt; then Score =7&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 19:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256007#M1618</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-01-07T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator vb to check for name with /n in the string</title>
      <link>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256008#M1619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still doesn't work. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Calculator accepts the code but does not recognize any relevant records. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 19:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256008#M1619</guid>
      <dc:creator>TiffanySelvidge1</dc:creator>
      <dc:date>2016-01-07T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator vb to check for name with /n in the string</title>
      <link>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256009#M1620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took your code and modified it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif InStr( [Modified], nblaugh) then Score =7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. I had been puzzling over that problem for some time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 20:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-field-calculator-vb-to-check-for-name-with-n/m-p/256009#M1620</guid>
      <dc:creator>TiffanySelvidge1</dc:creator>
      <dc:date>2016-01-07T20:21:37Z</dc:date>
    </item>
  </channel>
</rss>

