Problem with Search Cursor in script

372
1
09-24-2012 12:26 PM
DianaJoaqui_Lopez
New Contributor
I work in a « Extracting distances and bearings » script (ArcGIS 10.1). I use « search cursor » to view field values in row, I can read the values in the fields, except Xcoord and Ycoord.  This part of my script is correct? I think the error is here???

curSort = polyID + ";" + pointNumber
inCur = arcpy.SearchCursor(selectedLayer, "", None, curSort, curSort)

Someone could give me some solution?
0 Kudos
1 Reply
FabianBlau
Occasional Contributor II
Please use the code-tags (#-Button in the editor) and show me more of the script.
Is there an errormessage?
What is curSort?
The sort_fields-string needs the A or D for ascending or descending order, it cannot be equal the fields-string.
Do you have fields for the coordinates or do you use the shape-field?
0 Kudos