ListIndexes method |
|
Release 9.3
Last modified January 19, 2010 |
![]() ![]() ![]() Print all topics in : "Properties and Methods" |
Note:
This topic was updated for 9.3.1.
Lists all the indexes in the specified table, feature class, or shapefile. Specifying search conditions (wildcard) limits the results. This method and ListFields are the only two List methods that don't require you to preset the workspace.
Returns a Python List that will contain index objects.
NOTE: The content below describes the use of ListIndexes using a 9.3-version geoprocessor. When using a 9.2-version geoprocessor, ListIndexes returns an enumeration instead of a Python List. For more information, see Differences between geoprocessor versions.
Part | Description |
object | The instantiated geoprocessing object. |
InputValue | The name, path, or both of the table, feature class, or shapefile whose indexes are to be listed. |
wildCard | Optional. Combination of * and characters that helps to limit the results. The asterisk is the same as saying ALL. If no wildcard is specified, all indexes in the workspace will be returned. |
import arcgisscripting gp = arcgisscripting.create(9.3) fc = "c:/county/roads.shp" indexes = gp.listindexes(fc) while index: print "Name: " + index.Name print "IsAscending: " + index.IsAscending print "IsUnique: " + index.IsUnique