Hello everyone,
Is there a way to count records returned by a arcpy.da.SearchCursor?
This is how I am doing the count
# Initialize
count = 0
srcToday = None
with arcpy.da.SearchCursor(FeatureClass, fieldnames, whereClause) as srcToday:
for rowToday in srcToday:
count = count + 1
if count == 0:
……