I use summary statistics GP tool to extract the max OBJECTID from a feature layer. After that I use arcpy SerachCursor to get the OBJECTID value from the statistics, but the result returned is not an integer.
The statistics contents:
The result of SearchCursor:
The python code:
import arcpy arcpy.env.workspace = "C:/Users/lyao/Documents/ArcGIS/Default.gdb" feature = "C:/Users/lyao/Documents/ArcGIS/Default.gdb/BQ_Segment_1_Statistics1" with arcpy.da.SearchCursor(feature, ("MAX_geri_db_DBO_BQ_Segment_1_OBJECTID",), '"OBJECTID" = 1') as cursor: for row in cursor: print str(row)
I want to know:
How to get the exact same OBJECTID as in the statistics.
I am using vb.net, so I want to know how to return the result to vb.net.
I am using arcmap 10.2.