<?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: working with string variables in a FeaturClass in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127961#M4438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Chris, its work perfectly, I really appreciate your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 14:35:08 GMT</pubDate>
    <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
    <dc:date>2010-08-13T14:35:08Z</dc:date>
    <item>
      <title>working with string variables in a FeaturClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127959#M4436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a variable to be used in the select statement. So far, this is the code that I have right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rows1 = gp.SearchCursor(a + "copySelect1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row1 = rows1.Next()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while row1 &amp;lt;&amp;gt; None:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; road = row1.Getvalue("ROADNAME")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print road&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Select...the next line of code works, so the challenge is How to incorporate road variable here, to replace 'RD-300', it is in square brakets because it is a FeaturClass in a GeoDataset, I know how to works with shapefiles but this is not the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.Select_analysis(a + "copySelect1", "Rclip" + a + "Select", "[ROADNAME] = 'RD-300'")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.Select_analysis(a + "copySelect1", "Rclip" + a + "Select", "'[ROADNAME] = + str(road)), my problems are the double quotes, road variable is a string variable, what happen if it is integer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 03:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127959#M4436</guid>
      <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
      <dc:date>2010-08-13T03:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: working with string variables in a FeaturClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127960#M4437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You dont want to make the change directly in the tool inputs. Make the string before and just drop it in as a variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query="[ROADNAME] = '"+road+"'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Select_analysis(a + "copySelect1", "Rclip" + a + "Select", query)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 11:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127960#M4437</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2010-08-13T11:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: working with string variables in a FeaturClass</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127961#M4438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Chris, its work perfectly, I really appreciate your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 14:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/working-with-string-variables-in-a-featurclass/m-p/127961#M4438</guid>
      <dc:creator>Jose_LuisGarcinuno-Oporto</dc:creator>
      <dc:date>2010-08-13T14:35:08Z</dc:date>
    </item>
  </channel>
</rss>

