<?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: Field Calculator VB Script in Training in GIS Questions</title>
    <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777390#M9</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have also tried so, but didn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 17:47:40 GMT</pubDate>
    <dc:creator>AzaN</dc:creator>
    <dc:date>2016-03-31T17:47:40Z</dc:date>
    <item>
      <title>Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777384#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;I am trying to calculating a field ([Status]) based on another field ([SymbolID]). The code that I am using is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim Status&lt;/P&gt;&lt;P&gt;IF [SymbolID] = '0' THEN &lt;/P&gt;&lt;P&gt; Status = 'In Construction'&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt; Status =&amp;nbsp; 'Planned'&lt;/P&gt;&lt;P&gt;EndIf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I keep receiving failure messages. Could you please help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 15:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777384#M3</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-03-31T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777385#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VB script requires double quotes.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Dim Status&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;IF [SymbolID] = "0" THEN&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Status = "In Construction"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Else&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Status =&amp;nbsp; "Planned"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;End If&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 16:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777385#M4</guid>
      <dc:creator>ChristopherThomas</dc:creator>
      <dc:date>2016-03-31T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777386#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried , but still gives the same message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777386#M5</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-03-31T17:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777387#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I noticed your original EndIf needs a space in it: End If&lt;/P&gt;&lt;P&gt;I tested it here with a file geodatabase and a sql server feature class and it worked for me. What version of ArcGIS are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777387#M6</guid>
      <dc:creator>ChristopherThomas</dc:creator>
      <dc:date>2016-03-31T17:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777388#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder why it doesn't work for me. I also tried different types of field (Double, Text, etc.). I work with Arc GIS 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777388#M7</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-03-31T17:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777389#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you're returning text, your field must be text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the "Dim..." line. Dim is for VBA, not VBScript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777389#M8</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-03-31T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777390#M9</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have also tried so, but didn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777390#M9</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-03-31T17:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777391#M10</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a screenshot of what worked for me using the Calculate geoprocessing Tool in 10.3.1...&lt;/P&gt;&lt;P&gt;In this case SymbolID is a text field and Status is a text field length of 50 that I added to my Zoning feature class.&lt;/P&gt;&lt;P&gt;If you have not already, try restarting ArcGIS to make sure nothing is locked or old variables get cleared from memory.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193550_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 18:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777391#M10</guid>
      <dc:creator>ChristopherThomas</dc:creator>
      <dc:date>2016-03-31T18:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777392#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again, Christopher. I followed all the steps you mentioned. Also restarted ArcGIS, but unfortunately didn't work again. Here is a screen shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193559_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 18:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777392#M11</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-03-31T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777393#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It helps to include specific error messages, rather than just saying you got an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't put all the code in your Expression dialog, just "Status"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 19:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777393#M12</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-03-31T19:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777394#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aza, what &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt; said below... you only need to put the variable name "Status" into the expression. Post what the error message is if you still do not get that to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 14:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777394#M13</guid>
      <dc:creator>ChristopherThomas</dc:creator>
      <dc:date>2016-04-01T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777395#M14</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;time for a python example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 14:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777395#M14</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-01T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777396#M15</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193655_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 15:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777396#M15</guid>
      <dc:creator>AzaN</dc:creator>
      <dc:date>2016-04-01T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator VB Script</title>
      <link>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777397#M16</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aza,&lt;/P&gt;&lt;P&gt;What kind of data are you using this tool on? Is this a feature class in a file geodatabase? Excel Table?&lt;/P&gt;&lt;P&gt;The results window shows "CCTVs\CCTV Phase 5C\CCTV Phase 5C".&lt;/P&gt;&lt;P&gt;I usually try to avoid spaces in the names when scripting or gp tools are involved. I don't think that would be the problem, but you might try creating a copy with a different name without spaces and give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 17:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/training-in-gis-questions/field-calculator-vb-script/m-p/777397#M16</guid>
      <dc:creator>ChristopherThomas</dc:creator>
      <dc:date>2016-04-01T17:31:26Z</dc:date>
    </item>
  </channel>
</rss>

