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???
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?