<div dir="ltr"><div> Dear Group,</div><div>I'm trying to streamline some of my inline code in a Touch Screen task. Is it possible to pass string values as execuatable pieces of code in E-Basic? I can do this in MATLAB (I think) and R using and eval() function, but is there an analogue in E-Basic? </div>
<div> </div><div>I've tried the following 'for' loop to assign an object border width using the string returned from the HitTest function (Objects are named "R0" through "R7"). I can compile the script fine, but it won't actually change the attribute value for some reason. Perhaps I just need a second set of eyes to point something out. Any suggestions would be welcomed! Thanks, Jake</div>
<div> </div><div>Set MouseResp = CMouseResponseData(Question.InputMasks.Responses(1))<br> Hit = theState.HitTest(MouseResp.CursorX, MouseResp.CursorY)<br> Dim i as Integer<br> Dim theBorder As String<br> For i = 0 To 7<br>
theBorder = Hit & "BW"<br> If i = CInt(Mid(Hit,2,1)) Then<br> c.SetAttrib theBorder,"5"<br> Else<br> c.SetAttrib theBorder,"0"<br> End If<br> Next<br clear="all"></div>
<div> </div><div><br>-- <br></div><div dir="ltr">*************************************************<br>Jacob E. Anderson, MA<br>Scientist @ The Zelazo Lab<br>Institute of Child Development<br>51 East River Rd.<br>Minneapolis, MN 55455<br>
<br>E-mail: <a href="mailto:jea@umn.edu" target="_blank">jea@umn.edu</a><br>Cell: 763-458-7152</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 e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CALexiWPWWsSUGpWHukvw5QgVGuOjsWgdk7RJuv61%2B6auP3rZPw%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CALexiWPWWsSUGpWHukvw5QgVGuOjsWgdk7RJuv61%2B6auP3rZPw%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />