Show Navigation | Hide Navigation
You are here:
Geoprocessing > Automating your work with scripts > Scripting object: Properties and Methods > Properties and Methods

GetReturnCode method

Release 9.3
Last modified January 19, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Note: This topic was updated for 9.3.1.

Gets the severity code (0, 1, 2) specified (by index) from the returned list of messages, warnings, or errors


object.GetReturnCode(index As Long) As Long

Part Description
object The instantiated geoprocessing object
index The position of the desired severity code from the list of returned messages


import arcgisscripting
gp = arcgisscripting.create(9.3)

gp.Workspace = "H:/Forestry/forestry.mdb"
gp.Erase_arc("housing", "income", "low_income")

# Return the return code of the message in index position 3 (4th message)
print gp.GetReturnCode(3)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.