<?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: VB to Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233037#M18066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;VBA is supported in 10, but you have to request a special (free) licence extension.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 11:33:09 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2012-04-25T11:33:09Z</dc:date>
    <item>
      <title>VB to Python</title>
      <link>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233035#M18064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I convert that VB script to a python script or should I re-write the whole script again? We recently migrated from arcgis version 9.3 to 10 and seems as if VB is not supported in 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Static rec As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pStart As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pInterval As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStart = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pInterval = 1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If (rec = 0) Then &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rec = pStart &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Else &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rec = rec + pInterval &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 07:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233035#M18064</guid>
      <dc:creator>FelixMuyoba</dc:creator>
      <dc:date>2012-04-25T07:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: VB to Python</title>
      <link>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233036#M18065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;VBScript is supported in ArcGIS10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Python is the recommended scripting language for ArcGIS&lt;/SPAN&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VB scripting received some limitations, eg. "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;VBScript does not allow you to explicitly declare any data types&lt;/SPAN&gt;&lt;SPAN&gt;". I've also noticed that declaring Static variable causes error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information look at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002m000000"&gt;Calculate Field examples&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There's Python alternative to your code (search for autoIncrement() function).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 09:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233036#M18065</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-04-25T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: VB to Python</title>
      <link>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233037#M18066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;VBA is supported in 10, but you have to request a special (free) licence extension.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/vb-to-python/m-p/233037#M18066</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-04-25T11:33:09Z</dc:date>
    </item>
  </channel>
</rss>

