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

GetMessage 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.

By specifying the location (index), a message is returned from the message list.

Syntax


object.GetMessage(index As Long) As String

Part Description
object The instantiated geoprocessing object.
index Numeric position of the desired message. The message is returned as a string.


Examples


# This example shows how to print the start and end time for a tool.
#
import arcgisscripting
gp = arcgisscripting.create(9.3)

gp.Toolbox = "Analysis"
gp.Workspace = "D:/St_Johns/data.mdb"
gp.Clip("roads","urban_area","urban_roads")

# Print the first message (Start Time)
#
print gp.GetMessage(1)

# Print the last message (End Time)
#
print gp.GetMessage(gp.MessageCount - 1)


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