Kinad

Using Multivalue Inputs List

Discussion created by Kinad on Oct 11, 2011
Latest reply on Oct 12, 2011 by rbrennan-esristaff
I am having issues trying to get a list of multivalue input working.

Here is my code:

import arcpy

tbl = arcpy.GetParameterAsText(0)
wrksp = arcpy.GetParameterAsText(1)

for i in tbl.split(";"):
    arcpy.TableToTable_conversion(i, wrksp, "temp1.dbf")

For some reason the script will always crash saying the dataset does not exist.  The reason being is that the string returned has ' ' around it so the path name is not right.

Anybody know a work around?

Thanks

P.S.  How do I put my code above in a special box like everyone else seems to do?

Outcomes