<include> in a variable
Is is possible to use an <include> in a variable? I'm trying to save myself from a bunch of extra unnecessary code, but cannot figure out if this is possible.
Currently, if you wanted to include any kind of text, you'd put it in a Text object, and place the <include> between the <text></text> tags. I'm looking to do something like this: Code:
<Button fileText="<include>directory/file.txt</include>" property="blah" size="blah" OnPress="Page.Text=fileText">Click this button</Button> Wishful thinking? |
Why not just <include> the entire button? ;)
|
True. But I was going to use this for the updated InfoCenter I'm working on. Wanted to try to keep the xml and the txt files seperate.
|
You can always do the <text></text> include and point the script on your button to the text object.
|
Yeah, it looks like the only route I can go by for now. It's better, IMO, than having lots of pages, and hiding/showing them.
This does give me an interesting idea of putting all the <text> includes all in one file, since they're just gonna pose as variables themselves. Hmmm nifty :) |
All times are GMT -5. The time now is 05:43 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI