def main (a,b): return a
main(1, !field2!)
main(1,2)
main(!field3!, !field4!)
Isn't it this behavior?NIM059424 - Null values in the feature class do not get replaced when using Python in the Field Calculator.Seems to be fixed in 10.1.
from types import *
if type(c.field) is not NoneType:
c.field = None
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.