dynamically created List only operates for level 1

David McFarlane mcfarla9 at msu.edu
Thu Mar 20 19:18:48 UTC 2014


Did you look through the history on this thread (please see link 
below)?  I believe this has already been fully answered.  Did we miss 
something back then?

-- David McFarlane


At 3/20/2014 06:26 AM Thursday, sally wrote:
>Hi,JACanterbury
>I am confronted the same problem with you while the only one problem 
>is that I want to dynamically show the pictures not the text. But 
>this doesn't work, so I added one picture in the List initially my 
>List attribution on stimulus is null.
>So it can go  but only for 1st picture I put in List from the very 
>begining and no other dynamically added pictures are shown. I have 
>reset the list and add the terminatecondition and the reset 
>condition. I don't know what's going on there. Hope somebody can help.
>  Any help are appreciated.
>
>On Thursday, 6 October 2011 23:53:17 UTC+8, JACanterbury wrote:
>Hi
>
>I'm setting up my TrialList to have only 1 level and then building it
>on the fly something like this ...
> >>>>>>>>>>>>>>>>>
>for index = 1 to NUMBER_OF_TRIALS
>
>         TrialList.setProc index, "TrialProc"
>         TrialList.setWeight index, "1"
>         TrialList.setAttrib index, "response", responses( index )
>         TrialList.setAttrib index, "image", "images\\" & images( index )
>         TrialList.setAttrib index, "delay", Random( interval_min,
>interval_max )
>
>
>         if index < NUMBER_OF_TRIALS then
>                 TrialList.AddLevel index + 1    ' add the next 
> level to the list
>ready for the next loop iteration
>         end if
>
>next
>
>debug.print "TrialList size = " & TrialList.Size
> >>>>>>>>>>>>>>
>
>this code all works fine and adds the extra levels and the final
>debug.print displays the correct value (50 in this case) however the
>script then only performs 1 iteration so it seems to ignore all the
>extra levels that have been dynamically added.
>Interestingly, if I add an extra level ie level 2) manually  before
>running this code (with the approp tweak to stop AddLevel complaining)
>then the list operates for level 1 & level 2.
>
>It's as if e-prime is using the startup value for the list size and
>ignoring what has happened at run time.
>
>Any ideas would be appreciated ( i'd rather keep it dynamic if
>possible)
>
>Thanks

-- 
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/532b3f29.642e320a.6ad5.7749SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.



More information about the Eprime mailing list