Skip to main content
formatted code correctly
Source Link
djq
  • 16.4k
  • 31
  • 114
  • 184

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

Import arcpy module

# Import arcpy module import arcpy  arcpy.env.workspace = "c:\\test\\Mydata.mdb"  Drop_Field = arcpy.GetParameterAsText(0) 

Process: Delete Field (36)

 # Process: Delete Field (36) arcpy.DeleteField_management("ArcAddress", Drop_Field) 

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

Import arcpy module

import arcpy arcpy.env.workspace = "c:\\test\\Mydata.mdb" Drop_Field = arcpy.GetParameterAsText(0) 

Process: Delete Field (36)

arcpy.DeleteField_management("ArcAddress", Drop_Field) 

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

# Import arcpy module import arcpy  arcpy.env.workspace = "c:\\test\\Mydata.mdb"  Drop_Field = arcpy.GetParameterAsText(0)  # Process: Delete Field (36) arcpy.DeleteField_management("ArcAddress", Drop_Field) 

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

Import arcpy module

import arcpy arcpy.env.workspace = "c:\test\Mydata.mdb" Drop_Field = arcpy.GetParameterAsText(0)

import arcpy arcpy.env.workspace = "c:\\test\\Mydata.mdb" Drop_Field = arcpy.GetParameterAsText(0) 

Process: Delete Field (36)

arcpy.DeleteField_management("ArcAddress", Drop_Field)

arcpy.DeleteField_management("ArcAddress", Drop_Field) 

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

Import arcpy module

import arcpy arcpy.env.workspace = "c:\test\Mydata.mdb" Drop_Field = arcpy.GetParameterAsText(0)

Process: Delete Field (36)

arcpy.DeleteField_management("ArcAddress", Drop_Field)

How do I make the script below accept parameter arguments correctly in ArcGIS 10? I added it to a toolbox as a script, created parameter called Fields to be Deleted: and type as Field, but when I double click it to run it, the display dows not allow for adding fields (to be deleted)? PLEASE HELP:(

Import arcpy module

import arcpy arcpy.env.workspace = "c:\\test\\Mydata.mdb" Drop_Field = arcpy.GetParameterAsText(0) 

Process: Delete Field (36)

arcpy.DeleteField_management("ArcAddress", Drop_Field) 
edited tags
Link
relima
  • 2.8k
  • 4
  • 28
  • 37
Source Link
user1906
user1906
Loading