GetMessage 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.
By specifying the location (index), a message is returned from the message list.
Part | Description |
object | The instantiated geoprocessing object. |
index | Numeric position of the desired message. The message is returned as a string. |
# 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)