Paul & David,<div>Thanks for your thoughts and suggestions,</div><div><br></div><div>Paul, that's a great suggestion, in fact, I delivered a palm to my forehead when I read your note.  </div><div><br></div><div>Cheers,</div><div>Jake</div><div><br><br>On Wednesday, July 3, 2013 3:32:21 PM UTC-5, Paul Groot wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div><div><div>Hi Jake,<br><br></div>I think you are looking for a solution that is more complex than actually required. Instead of changing an object property indirectly by changing an attribute value, why not changing the object property directly?<br>
<br></div>This is a piece of code that I used in my VAS script to highlight a selected button:<br><br>        Set hitObject = CSlideText(ACK_SlideState.<wbr>Objects(strHit))<br>        hitObject.BackColor = CColor("silver")<br>
        hitObject.Draw<br></div>        etc...<br><div><br><br><div>Best<br>Paul<br><br></div></div></div><div><br><br><div class="gmail_quote">On 3 July 2013 18:07, David McFarlane <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Fb4PrQNrDLsJ">mcfa...@msu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jake,<br>
<br>
I am fairly certain that E-Basic/VBA does not have anything like an eval() function.<br>
<br>
-----<br>
David McFarlane<br>
E-Prime training online:  <a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank">http://psychology.msu.edu/<u></u>Wor<wbr>kshops_Courses/eprime.aspx</a><br>
Twitter:  @EPrimeMaster (<a href="https://twitter.com/EPrimeMaster" target="_blank">https://twitter.com/<u></u>EPrimeMas<wbr>ter</a>)<br>
<br>
<br>
At 7/2/2013 01:21 PM Tuesday, Jake wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Oh, I see why that's not working now, the logic was overwriting the Attribute.<br>
<br>
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?<br>

<br>
Thanks,<br>
Jake<br>
<br>
<br>
On Tuesday, July 2, 2013 10:32:22 AM UTC-5, Jake wrote:<br>
 Dear Group,<br>
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?<br>

<br>
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<br>

<br>
Set MouseResp = CMouseResponseData(Question.<u></u>In<wbr>putMasks.Responses(1))<br>
 Hit = theState.HitTest(MouseResp.<u></u>Cur<wbr>sorX, 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>
<br><span><font color="#888888">
<br>
--<br>
******************************<u></u><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>
</font></span></blockquote><span><font color="#888888">
<br>
-- <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="javascript:" target="_blank" gdf-obfuscated-mailto="Fb4PrQNrDLsJ">e-prime+u...@<u></u>googlegrou<wbr>ps.com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Fb4PrQNrDLsJ">e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/51d44c69.472c320a.5826.6445SMTPIN_ADDED_MISSING%40gmr-mx.google.com" target="_blank">https://groups.google.com/d/<u></u>ms<wbr>gid/e-prime/51d44c69.<u></u>472c320a.<wbr>5826.6445SMTPIN_<u></u>ADDED_MISSING%<wbr>40gmr-mx.google.<u></u>com</a>.<br>

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>grou<wbr>ps/opt_out</a>.<br>
<br>
<br>
</font></span></blockquote></div><br></div><div><br></div>
</blockquote></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/3ade0f8e-6d29-4b53-be09-1af80d0cdb6c%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/3ade0f8e-6d29-4b53-be09-1af80d0cdb6c%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 />