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

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

Selects the specified parameter, by its index position, from the list of parameters. This method returns a string. To use the parameter as an object, see GetParameter.

Learn more about script tools.


object.GetParameterAsText(index As Long) As String

Part Description
object The instantiated geoprocessing object
index Numeric position of the desired parameter from the list of selected parameters


This script demonstrates how to use the GetParameterAsText method to get input parameter values:

import arcgisscripting
gp = arcgisscripting.create(9.3)

# Get the list of feature classes to be copied to the output workspace.
in_feature_classes = gp.GetParameterAsText(0)

# Get the output workspace.
out_folder = gp.GetParameterAsText(1)

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