ESRI tech support is lying to you. The reason it's not working is because I made a typo in the script (oops). It should be "for row in rows:", not "for each row in rows:". Here is an actual example, that calculates the minimum value for the field "Join_Count" in the feature class "points2sj".count = 0
def mini():
global count
global value
global rows
if count == 0:
rows = arcpy.SearchCursor("H:\GIS_Data\TEMP_GDB.gdb\points2sj","","","", "Join_Count A")
for row in rows:
if count == 0:
value = row.Join_Count
count = 1
return value