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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.