<div dir="ltr"><div><div><div>have you first declared the variable OverallAcc?<br><br></div>Stick something like ...<br><br><span style="font-family:courier new,monospace"><b>Dim OverallAcc As Summation</b></span><br><br></div>
on the User tab of the Script View and then rerun it<br><br></div>John<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 March 2014 17:10, JoAnn Silkes <span dir="ltr"><<a href="mailto:jsilkes@uw.edu" target="_blank">jsilkes@uw.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay - I just figured out I should probably include more information.<br><br><br>The second InLine is labeled "Summation", and reads as follows:<br>
<br>OverallAcc.AddObservation c.GetAttrib ("ResponseScreen.ACC")<br><br>Debug.Print OverallAcc.Mean<br><br>c.SetAttrib "OverallAcc", OverallAcc.Mean<br><br><br>And the third, designed to turn the OverallAcc into a percentage, is:<br>
<br>c.SetAttrib "OverallAcc", OverallAcc.mean*100<br><br>Thanks for any insights.<br>JoAnn.<br><br><br><br>On Wednesday, March 19, 2014 9:41:36 AM UTC-7, JoAnn Silkes wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, Everyone -<br><br>I don't do much actual programming (i.e., writing code) in EPrime, but am now trying to rebuild some protocols that I put together a few years ago and have hit a glitch.My protocol includes three short InLine scripts, designed to allow it to keep a running tally of response accuracy. The very first one is:<br>
<br>set OverallAcc = new summation<br><br>This InLine script is identical to the one in the protocol I'm copying but, when I try to generate the script, I get the error message "Variable not defined" for this line. I thought I'd copied the entire protocol verbatim from the ones we've been using already, but apparently I missed something. Where (and how) should I be defining these variables?<br>
<br>Thanks for any help anyone can provide.<br><br>JoAnn.<br><br></div></blockquote></div><span class="HOEnZb"><font color="#888888">

<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" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/cf18fbd8-9ca3-4f51-beb6-763f8ee87f97%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/cf18fbd8-9ca3-4f51-beb6-763f8ee87f97%40googlegroups.com</a>.<br>

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">-------<br>John<br>John@JohnAllen.IT<br></font>
</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/CAAT4JdQN4VEwn5UqQK7SNqAoAJiypH%3DkEbDVk9ob8JUBbCEhHA%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CAAT4JdQN4VEwn5UqQK7SNqAoAJiypH%3DkEbDVk9ob8JUBbCEhHA%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />