sbfly

Calculate Value Python dbf table

Discussion created by sbfly on Jun 21, 2011
Latest reply on Jun 21, 2011 by sbfly
HI

i will get a value from a table dbf.
for this i use the Calulate Value Tool in ArcGis 9.3

I wrote this small pyton tool but it will not work, could somebody help me

Minimum("D:/data/program/test3_copy.dbf", "N15","10")

def Minimum(inputData, FieldName,row):
    import arcgisscripting
    gp = arcgisscripting.create()
    gpResult = gp.GetCellValue(inputData, FieldName,row)
    print gp.AddMessage( str( gpResult.GetOutput(0) ))

Outcomes