Hi,
I am often confronted with the following text situation:
To view xxx, please do 111.
To view yyy, please do 222.
To view zzz, please do 333.
Now i have to create 3 variables: <%viewx%>, <%viewy%>, <%viewz%>,
I would like to have 1 variable: To view #a#, do #b#.
whereby i put in my source: <%view,a="xxx",b="111"%>
Frans
Variable variables
Moderators: Alexander Halser, Tim Green
- Frans Van Antenhove
- Posts: 15
- Joined: Mon Jan 21, 2013 11:52 am
- Location: Belgium
- Contact:
- Tim Green
- Site Admin
- Posts: 23153
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Variable variables
Sorry, that's not going to happen. It would be much more clunky to manage than you imagine. Also, you would probably end up with even more variables as a result, because you would need new definitions for every combination. What you CAN do is include variables in the definitions of variables. For example, your COPYRIGHT variable could contain:I would like to have 1 variable: To view #a#, do #b#.
whereby i put in my source: <%view,a="xxx",b="111"%>
Code: Select all
Copyright (c) 1911 - <%YEAR%> by <%AUTHOR%> and <%TOPICLASTEDITEDUSER%>
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.