placeholder in object name?

liwenna liwenna at gmail.com
Tue Feb 15 14:38:14 UTC 2011


Hi all,

I got a question!

"Long explanation
if not interested goto *****

In an experiment one of four procedures will be run in order to show
the outcome of a chocie made by the participants (choose one of four
decks, the outcome displays differ per choice made so the program is
redirected to one of four procedures that hold the different outcome
slides).

On each of these outcome procedures I have an inline to redirect the
program in case of participants clicking outside a certain button.
This inline starts with collecting the mouse responses and in this
line of code the name of the slideobject on which participants clicked
has to be specified. The name of this slidedisplay obviously differs
over the four procedures and this difference is simply the answer (a,
b, c, d): i.e. decksoutcomeAupdatedcounters,
decksoutcomeBupdatedcounters etc.

Now.. this inline has to appear in all four procedures but the
slideobject that is defined has to differ on this one letter... and
although it is little effort to simply make four separate inlines (as
I now did) I would so much like to know if it would have been possible
to use one single inline for all four procedures in which, somehow,
the value of the attribute "response" (or... the variable strhit for
that matter) is placed into the objectname.

*****
I was trying to get something like this working...:

dim r as string
r$ = c.getattrib("response")

	Set theState = decksoutcome&r$&updatedcounters.States(showdecks)

... but to no avail.

Does anyone know how to do this? I'd like to learn for future use :)

Thanks in advance,

AW

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list