Marcin_Latos

Python pre-logic codeblock comma delimited problem

Discussion created by Marcin_Latos on Nov 17, 2011
Latest reply on Nov 18, 2011 by mdenil
Hi all,
I'm looking for a solution to the following problem:

There are coors in a table stored in format like that: 220103,23 E // 521123,23 N
When I'm trying to pass them as an argument in the Field Calculator python pre-logic code ...
movePoint (!Shape!, !coorE!, !coorN!)
to the function ...
def movePoint(shape, E, N):
I'm getting an error because movePoint Function sees not 3 arguments but 5 due to commas in the coors values.

How to solve this?
And I don't want to replace "," with "." in the table.

Kind regards
Marcin

Outcomes