Hi,<br><br>I think group is not really a variable. It is an attribute. You will need getattrib function. The following script probably is what you need.<br><br>
if c.GetAttrib("group") = 1 then<br> List1.SetAttrib 1, "corrAns", "w"<br> List1.SetAttrib 2, "corrAns", "q"<br>else<br>
List1.SetAttrib 1, "corrAns", "q"<br>
List1.SetAttrib 2, "corrAns", "w"<br>
end if<br><br>Best,<br><br>Shin-Yi<br><br><br> List1.SetAttrib 1 "corrAns")yes = "q" and no = "w"<br>
> if group = 2 then yes = "w" and no = "q"<br><br><div class="gmail_quote">On Fri, Sep 4, 2009 at 6:10 PM, Tobi <span dir="ltr"><<a href="mailto:tobias.fw@gmail.com">tobias.fw@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
To be more understandable, here are two screenshots, one of the list<br>
and one of the InLine:<br>
<br>
<a href="http://chilion.com/probl1.JPG" target="_blank">http://chilion.com/probl1.JPG</a><br>
<a href="http://chilion.com/probl2.JPG" target="_blank">http://chilion.com/probl2.JPG</a><br>
<br>
<br>
On 4 Sep., 19:40, Tobi <<a href="mailto:tobias...@gmail.com">tobias...@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
><br>
> I have a question concerning the "group" variable than can be prompted<br>
> for in the beginning of each session. I want to change the correct<br>
> answer key according to this group variable (and change the key<br>
> assignment as a consequence of corse).<br>
><br>
> In a very easy example there might be a trials with a target or no<br>
> target (blank). One group should answer with "w" for TARGET and "q"<br>
> for BLANK, the other group the other way round:<br>
><br>
> LIST:<br>
><br>
> ID Procedure corrAns<br>
> -------------------------------<br>
> 1 blank [no]<br>
> 1 target [yes]<br>
><br>
> I used this InLineas the very first line:<br>
><br>
> dim yes, no<br>
> if group = 1 then yes = "q" and no = "w"<br>
> if group = 2 then yes = "w" and no = "q"<br>
><br>
> Unfortunately I get the error message "Unknown function "group"".<br>
> What does that mean? I am not so familiar with Basic, so any help<br>
> might be very cool.<br>
> Maybe you have other suggestions to change key assignment by the help<br>
> of startup information.<br>
><br>
> Thanks a lot,<br>
> Tobias<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ph.D. Student<br>Department of Psychology<br>University of Connecticut<br>and<br>Haskins Laboratories<br><br>
<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>