get current procedure from nested list
Lisa Kaggen
lbkaggen at gmail.com
Tue Mar 11 19:29:49 UTC 2014
Hi there,
I have a task where 50 pictures appear in a random order, and in one of 4
locations, randomly. To program this, I created 50 nested lists within my
TrialList, and then within each nested list, created 4 different levels
each with a different procedure that consists of showing an image in 4
different locations on a slide object - the nested lists then randomly
select one of those levels/procedures to display (not the most efficient
method, but it works). All I need to do is create a string variable of
which level/procedure was used (because ultimately I need to integrate this
variable into some code that allows it to send messages to the eyetracker
we're using, which I already know how to do). The solution I came up with
was to go through each of the nested lists, and create a 'picture' variable
specific to each procedure and implement this code:
''determine which nested list is being used currently
Dim procname As String
procname = c.GetAttrib("Running")
''determine which level of the nested list was chosen
Dim imglocation As String
imglocation = procname.GetCurrentAttrib("picture")
**insert eyetracking message code here referring to "imglocation" variable**
However, the creation of a 'picture' variable for 4 different procedures
across 50 nested lists will be pretty time consuming, and I'm also not sure
it will even work (can someone weigh in on that?). Does anyone have a
solution for retrieving the current level/procedure (*not *current list)
and setting it as a variable?
Many thanks!
Lisa
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/f0d17644-08f5-43b9-8a0a-e3e0706f1aa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140311/2f397776/attachment.htm>
More information about the Eprime
mailing list