Page 1 of 1

Setting list control title via script?

Posted: Sun Jan 16, 2005 12:51 pm
by dlmorgan999
I have a list control and I would like to be able to dynamically set the title via a VBscript using a line like this:


Code: Select all

    SetPropertyValue "Ripped DVD List.Title", "** No Titles Found **"


When I run the script I get an error: Unable to find Property with Description [Title]. Am I doing something wrong or is this not supported?



-- Dave

Posted: Sun Jan 16, 2005 3:01 pm
by ScottBot
The parameters passed to SetPropertyValue() must specify an actual Property and Device running in the System. It won't work with controls on Themes.



You could specify 'no title' for the control on the Theme. Then add a Property Label right above the list to hold the title. Then associate a Property with that control and use the script (with SetPropertyValue) to update a real Property that will be reflected as the title.

Posted: Sun Jan 16, 2005 4:53 pm
by dlmorgan999
That solution will work just fine. Thanks for the idea Scott! :)