<div dir="ltr">Hi,<div>I've by now reached a point at which I have no clue what's going on. Basically, I wrote some script for an E-Prime Experiment to select the stimuli to display. I used arrays to represent the stimuli, because the have categories from which they have be dran randomly and then checked, if the violate the mode of stimulus selection. So first, I declared my array at the beginning of the Experiment:</div><div><br></div><div><font face="courier new, monospace"><span style="line-height: 18px;">Dim EndArray(</span><span style="line-height: 18px; color: rgb(148, 33, 147);">14</span><span style="line-height: 18px;">,</span><span style="line-height: 18px; color: rgb(148, 33, 147);">5</span><span style="line-height: 18px;">,</span><span style="line-height: 18px; color: rgb(148, 33, 147);">2</span><span style="line-height: 18px;">) As String</span></font></div><div><font face="courier new, monospace"><span style="line-height: 18px;"><br></span></font></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">The Array contains 14 Items that each have 5 attributes and are going to be 2 times, so these are the array dimensions. I decided to just ignore array space "0" not to get lost in the script later on. Now, in a later script E-Prime is told to randomly select on of 14 items and repeat this process until </font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><p style="margin-bottom: 0px; line-height: normal; color: rgb(0, 143, 0);"><font face="courier new, monospace" size="2">'determine destination</font></p>
<p style="margin-bottom: 0px; line-height: normal;"><font face="courier new, monospace" size="2">RandomObject = random(<span style="color: #942193">1</span>,<span style="color: #942193">14</span>)</font></p>
<p style="margin-bottom: 0px; line-height: normal; min-height: 11px;"><font face="courier new, monospace" size="2"><br></font></p>
<p style="margin-bottom: 0px; line-height: normal; color: rgb(0, 143, 0);"><font face="courier new, monospace" size="2">'Destination already covered 2 times?</font></p>
<p style="margin-bottom: 0px; line-height: normal;"><font face="courier new, monospace" size="2">While EndArray(RandomObject,<span style="color: #942193">4</span>,<span style="color: #942193">1</span>) = <span style="color: #941100">"1"</span> And EndArray(RandomObject,<span style="color: #942193">4</span>,<span style="color: #942193">2</span>) = <span style="color: #941100">"1"</span><font color="#6aa84f"> 'both are completed</font></font></p>
<p style="margin-bottom: 0px; line-height: normal;"><font face="courier new, monospace" size="2"><span class="Apple-tab-span" style="white-space:pre"> </span>RandomObject = random(<span style="color: #942193">1</span>,<span style="color: #942193">14</span>) <span style="color: #008f00">'draw again</span></font></p>
<p style="margin-bottom: 0px; line-height: normal;"><font face="courier new, monospace" size="2">Wend</font></p></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">This very easy condition check produces the following error - but I have no clue why. Why is it regarding the array as a function instead of a variable? I used this type of addressing arrays in other experiments and it worked ...</font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">"Unknown function EndArray"</font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">I am aware that my code ist not beautiful at all, but it works most of the time ;)</font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">I would be glad, if you could help!</font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height: 18px;"><font face="arial, sans-serif">Regards</font></span></div><div><font face="arial, sans-serif"><span style="line-height: 18px;">Benny</span></font></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/abc8d4fa-4d48-4c9d-91cb-a58700b73e95%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/abc8d4fa-4d48-4c9d-91cb-a58700b73e95%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />