Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Get values from custom property inheriting PropertyMultipleValue

Vote:
 

Hi folks

* Using CMS5 R2

I've created a custom property that inherits from PropertyMultipleValue on the assumption that I can store multiple values in a comma delimited string.  Using the SetDefaultValue method, I set the initial value to "0,0" like so:

Protected Overrides Sub SetDefaultValue()  Me.String = "value1,value2" End Sub
 
My assumption was that I should have been able to retrieve the values like so:

PropertyName.Value(0) and PropertyName.Value(1)

However, the above will merely return an index within the string.  How do I retrieve the values from the string?  Do I need to split the string?  And if so, how is the PropertyMultipleValue different from PropertyString?

#31210
Jul 09, 2009 6:29
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.