Select to view content in your preferred language

translating VBA to Python

677
1
10-18-2011 01:34 AM
YousafHassan
Emerging Contributor
Hi

Is there any guidance on how to translate VBA code to Python? The reason I want to do this is because I wanted to use some powerful features of Arcpy which do not exist in VBA.

Thanks.
Tags (2)
0 Kudos
1 Reply
ChristopherStorer
Emerging Contributor
I don't believe there is any specific guidance out there about direct conversions between the two.  It's probably best to take a little time to learn straight Python (nothing ESRI specific), then once you have the basic constructs down (variable assignment, try/catch loops, comparison operators, loops, lists, etc.), throw arcpy into the mix and start running using the geoprocessor.  I think you'll find you're not far behind the loop in the arcpy world, since some of the most impressive features only arrived in ArcGIS 10.  Sorry I can't be more helpful!
0 Kudos