nheick

Using String Methods on a String Parameter Value in ToolValidator

Discussion created by nheick on Mar 10, 2013
I am having trouble using string methods on a value object that is for a multivalue string parameter.  For example, the following doesn't work because the value object doesn't support string methods:

self.params[10].value.split(";")

The Help indicated to use the value property of the value object for string manipulation, but the following won't work:

self.params[10].value.value.split(";")

The error message was similar as before.  Finally, the following works:

str(self.params[10].value).split(";")

Still, I want to know why what the Help said wasn't working.

Outcomes