Hi holch,
of course, it's not that usual what I have to do.
@But to access...: there are the reserved
this. and
self. variables to access the very question I'm working with. But this.code or self.code are not returning the code!
@what I want to do: I have to use an expression that is the same in each question / subquestion except one number (used as an index).
An example, my EM expression is:
{csv_get(eq01, 3)}
where
csv_get is a self-programmed EM function
and returns an entry from a csv list like "this,is,really,great" ('really' in this example)
eq01 is an equation (question) within the survey containing "this,is,really,great"
and the index
3 is different from question to question, i.e. in Quest01 the index is 1, in Quest02 the index is 2, in Quest03 the index is 3.
Do you see my intention? I'd like to use (a part of) the question code as a tag. So my final intention is an EM expression like:
{csv_get(eq01, tagnum(this.code))}
where
tagnum is a simple function I've wrote to extract the number from a string like "Quest01" i.e. 1
and
this.code is the non-existing desired function to get the questions code (eg) "Quest01"!
So I have to reedit the EM formula every time, even if there is only a small change. And if you have to do this dozens of times its really a pitty.