Multi_CompFields_Average.qry

  Download

More scripts: Computed Field

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# computed field for polygons. Returns the average area of the polygons associated with the current record in the CLASS table.
a = 0
b = 0
c = 0
a = (SetSum(POLYSTATS[*].Area))
b = (SetNum(POLYSTATS[*].Area))
if (b != 0) c = a / b
return c