Hello all,<br><br>I have this predicament. I'm running a recognition memory experiment (similar to the StudyRecall example) that is a little bit complicated. I have several lists of stimuli all nested within the Study List.<br>
<br>What we have looks something like this:<br>StudyList (randomly shuffle)<br>-Nested category 1<br>-Nested category 2<br>- ...<br>-Nested category 16<br><br>Each nested category contains 9 pictures - within the [Picture] attribute is the picture filename.<br>
<br>I need to randomly select 2 pictures from each nested category and get their filenames so I can write them to a recall list.<br><br>Now, I can't do context referencing for this. While c.GetAttrib("Picture") will successfully get a picture at the same level, I need to get TWO pictures from the same nested category, and if I jump levels, it will jump to another nested category.<br>
<br>I thought that maybe I could declare a string variable that takes on the category name, so I wrote something like this:<br><br>dim CatName As String<br>CatName = Categories.GetAttrib(counter, "Nested")<br>RecallList.setAttrib counter, "Stimulus", CatName.GetAttrib(counter, "Picture")<br>
RecallList.setAttrib counter + 1, "Stimulus", CatName.GetAttrib(counter + 1, "Picture")<br><br>The only problem is that when I generate the script, it tells me that CatName must be a valid object in order to reference.<br>
<br>Is there any way I can have a variable reference a list object?<br><br>Any tips to point me in the right direction would be supremely helpful. Thanks!<br><br>Adam<br><br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>