<div>Oh, I see why that's not working now, the logic was overwriting the Attribute.</div><div> </div><div>Still, it would be good to know if you pass a string as an expression.  I've search the documentation and some VB stuff online, but I haven't seen an eval() like function. Has anyone else used/seen something like that in E-Basic?</div><div> </div><div>Thanks,</div><div>Jake</div><div> </div><div><br>On Tuesday, July 2, 2013 10:32:22 AM UTC-5, Jake wrote:</div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote"><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.<wbr>InputMasks.Responses(1))<br> Hit = theState.HitTest(MouseResp.<wbr>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">******************************<wbr>*******************<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></div>
</div>
</blockquote>

<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/bc1065ec-7dde-46ca-a30c-eff40694838e%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/bc1065ec-7dde-46ca-a30c-eff40694838e%40googlegroups.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 />