tomas.tencer

VB to python

Discussion created by tomas.tencer on Jun 28, 2011
Latest reply on Jun 28, 2011 by bruce.nielsen
Hi could anyone please, help me to rewrite the code from VB to python?
Expresion:
strCobj


Dim strCobj as string
If Mid ( [PointId],2,1 ) = 1 Then
strCobj = "O"& Mid ( [PointId],3,3 )

elseif Mid ( [PointId],2,1 ) = 9 Then
strCobj = ""

elseif Mid ( [PointId],2,1 ) = 0 Then
strCobj = "F"& Mid ( [PointId],3,3 )

end if


So far Im failed.
I m using arcgis10 and the old one VB code doesnt work:(

ty for any help

Outcomes