Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Using String Methods on a String Parameter Value in ToolValidator

$
0
0
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.

Viewing all articles
Browse latest Browse all 2485

Trending Articles