Variable variables

Nothing is perfect! This is where you can post your ideas and wishes for functions you'd like to see in Help & Manual. Current version only please (H&M7).

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
Frans Van Antenhove
Posts: 15
Joined: Mon Jan 21, 2013 11:52 am
Location: Belgium
Contact:

Variable variables

Unread post by Frans Van Antenhove »

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
User avatar
Tim Green
Site Admin
Posts: 23153
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Variable variables

Unread post by Tim Green »

I would like to have 1 variable: To view #a#, do #b#.
whereby i put in my source: <%view,a="xxx",b="111"%>
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:

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.
Post Reply