2009-01-31, 05:29
Okay. I've got a bunch of little questions that have been building up. I've tried looking up answers, but my brain is pretty fizzled from spending the past week staring at code for 12 hours at a crack. So much, that I just typed this all once and then closed my browser for no apparent reason.
1. How do I concantenate two info values plus the "\" symbol?
I have skin.string(ArtWeather) and weather.fanartcode, where Artweather is just a stored path to the weather folder.
In addition to concantenation, how do I do basic string operations like stringleft(), stringright(), stringmid(), etc? If there's a WIKI page I missed, you can just point me to that.
If not, what I've got in the back of my mind right now is to get listitem.filename, strip it down to the rightmost three characters, and then compare it to see if it is a specific filetype.
Unfortunately, I have no idea how to perform the operations to either strip down the string or compare it. An example would be awesome.
2. Is there a way to set a conditional visibility based on the existence of a specific plugin?
Okay...I spaced out on the rest of what I was going to ask now...crap. Well, I'm going to go eat seeing as how I don't think I've actually done that yet today...maybe I'll remember then...
3. Is there a way to set a control's property based on the property of another control? As in, if I have a button who's width is 70 pixels, can I tell a list to be that button's width? Ideally, I'd want it to be the propertywidth + another value.
1. How do I concantenate two info values plus the "\" symbol?
I have skin.string(ArtWeather) and weather.fanartcode, where Artweather is just a stored path to the weather folder.
In addition to concantenation, how do I do basic string operations like stringleft(), stringright(), stringmid(), etc? If there's a WIKI page I missed, you can just point me to that.
If not, what I've got in the back of my mind right now is to get listitem.filename, strip it down to the rightmost three characters, and then compare it to see if it is a specific filetype.
Unfortunately, I have no idea how to perform the operations to either strip down the string or compare it. An example would be awesome.
2. Is there a way to set a conditional visibility based on the existence of a specific plugin?
Okay...I spaced out on the rest of what I was going to ask now...crap. Well, I'm going to go eat seeing as how I don't think I've actually done that yet today...maybe I'll remember then...
3. Is there a way to set a control's property based on the property of another control? As in, if I have a button who's width is 70 pixels, can I tell a list to be that button's width? Ideally, I'd want it to be the propertywidth + another value.