Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to have a list of strings to pass as parameter to my script:

enter image description here

when I start the script it displays:

enter image description here

With "Add Value' button disabled. What am I missing here?

share|improve this question
    
There is 'solution' by adding Filter-Value List, but it is ugly –  FelixIP yesterday
    
I was thinking that you wanted to enter multiple free format strings rather than choosing them from a list. Tool validation may be of assistance but will still not be pretty. –  PolyGeo yesterday
    
Yes I do want free format strings, using Value List was just an interim solution and I don't like it. This is about fixing missing paths in old mxds anyway –  FelixIP yesterday
    
I've not done this but perhaps it can work. Use a second parameter to enter a single value string parameter and use tool validation to use that being entered to trigger update of your separate multi value string parameter. –  PolyGeo yesterday
    
There appears to be another approach that incorporates ModelBuilder at gis.stackexchange.com/questions/17821/… It seems a little unintuitive but sounds like it may work and be simpler than tool validation. –  PolyGeo yesterday

1 Answer 1

up vote 2 down vote accepted

Use the "Any Value" data type instead of the "String" data type. I have no idea why multivalue strings don't work, but it's very counterintuitive...

Script properties Script tool GUI

share|improve this answer
    
I am accepting this although it was one of the solutions I've checked. I was looking for true string inputs because they are not enclosed in ' symbols, even if there are \ symbols inside the string. This is convenient when working with folders (non-existing things from old mxds) –  FelixIP yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.