<html>
<body>
<br>
Google can be your friend ... much pages telling of components of VBA
code, such as conditionals, to achieve syntax allowable. One
offering:<br><br>
<a href="http://msdn.microsoft.com/en-us/library/752y8abs(v=vs.80).aspx" eudora="autourl">
http://msdn.microsoft.com/en-us/library/752y8abs%28v=vs.80%29.aspx<br><br>
</a>At 03:45 AM 9/11/2012, you wrote:<br>
<blockquote type=cite class=cite cite="">Dear David<br>
<br>
I am a novice at this software and so is my supervisor. I have spent many
weeks reading the manuals but still no help. Maybe you could enlighten
me?<br>
<br>
I am planning on testing 2 groups and need 2 experiments for each
feedback type (positive and negative) with various versions. I only need
the correct answers to appear in the positive group and the incorrect and
no response to be blank. The feedback icon within the E-prime 2.0 was
used as my supervisor strongly suggested I use it but when I did use the
feedback icon on its own without any inline scripting all keypresses (sd=
same/different) were incorrect and all blank or no responses were
correct. <br>
<br>
Now, I am not sure if I should pursue the route of inline script with the
feedback icon or if I should just start over and use a different
method.<br>
<br>
Any helpful comments would be much appreciated at this very moment in
time.<br>
<br>
Thank you.<br>
<br>
<br>
> Date: Thu, 8 Nov 2012 11:32:32 -0500<br>
> To: e-prime@googlegroups.com<br>
> From: mcfarla9@msu.edu<br>
> Subject: RE: Feedback and inline script<br>
> <br>
> Um, fearing to tread here because the offered code sample exhibits a
<br>
> profound lack of understanding of computer programming which no
doubt <br>
> augurs much further trouble to come, but here goes...<br>
> <br>
> The line<br>
> <br>
> If "TrialStimulus"="sd" then<br>
> <br>
> compares the string "TrialStimulus" to the string
"sd" and that will <br>
> always be false, and certainly not what you meant to do. Then your
<br>
> Else If clause performs exactly the same comparison, again certainly
<br>
> not what you meant.<br>
> <br>
> So the code that you posted should always fall through to the Else
<br>
> clause, which sets NoResponse to "Blank.bmp". I don't
quite see how <br>
> that results in the behavior you describe, but perhaps that happens
<br>
> due to other code that you did not post, and in any case your If,
<br>
> Else If, Else is deeply flawed.<br>
> <br>
> If you do not yet understand the distinctions between variables and
<br>
> literals, and how to use conditionals, then I urge you to first take
<br>
> any Introduction to Computer Programming course before proceeding
further.<br>
> <br>
> -- David McFarlane<br>
> <br>
> <br>
> At 11/8/2012 11:09 AM Thursday, Gulshan Tahir wrote:<br>
> >Hi Susan<br>
> ><br>
> >Thank you I have tried that and now it works, wierd. But now I
have <br>
> >another problem. All I receive are positive feedback for all 3
<br>
> >response types (positive, negative and no response). Is there a
way <br>
> >that I can maybe code it a little different so that no response
and <br>
> >negative response show up as blank?<br>
> ><br>
> >Thank you<br>
> ><br>
> ><br>
> >----------<br>
> >Date: Thu, 8 Nov 2012 07:58:57 -0800<br>
> >From: susangc7@gmail.com<br>
> >To: e-prime@googlegroups.com<br>
> >Subject: Re: Feedback and inline script<br>
> ><br>
> >Not to be a wise-ass, but did you try adding another End If at
the end?<br>
> ><br>
> >(I don't know that your code does what you want it to, but this
is a <br>
> >simple fix so you can keep troubleshooting.)<br>
> ><br>
> >HTH,<br>
> >Susan<br>
> ><br>
> >On Thursday, November 8, 2012 10:53:18 AM UTC-5, <br>
> >pure-...@hotmail.co.uk wrote:<br>
> >Hi All<br>
> ><br>
> >I have managed to receive some feedback for positive groups.
However<br>
> >when I ran the experiment all the responses excluding
negative<br>
> >responses were positive. I would like to script both negative
and no<br>
> >response as blank and had managed to do only the negative.<br>
> >My script is as follows but now e-prime comes up with an error
stating<br>
> >encountered: end of line<br>
> >Expecting: End if.<br>
> ><br>
> >My script:<br>
> ><br>
> >Dim CorrectAnswer as String<br>
> >Dim IncorrectAnswer as String<br>
> >Dim NoResponse as string<br>
> ><br>
> >If "TrialStimulus"="sd" then<br>
> > CorrectAnswer= "Correct"<br>
> ><br>
> >Else if "TrialStimulus"="sd" then<br>
> > InCorrectAnswer= "Blank.bmp"<br>
> ><br>
> >Else<br>
> > NoResponse= "Blank.bmp"<br>
> > End if<br>
> ><br>
> ><br>
> >I would like to know what the problem is and how I can fix it as
there<br>
> >seems to not be working at all now.<br>
> ><br>
> >Thank you<br>
> <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
<a href="https://groups.google.com/groups/opt_out" eudora="autourl">
https://groups.google.com/groups/opt_out</a>.<br>
> <br>
> <br><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
<a href="https://groups.google.com/groups/opt_out">
https://groups.google.com/groups/opt_out</a>.<br>
<br>
</blockquote></body>
</html>
<p></p>
-- <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 <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />