feedback object - correct answer one of many

c.frosch@reading.ac.uk die.carrie at gmail.com
Mon Oct 29 18:50:27 UTC 2007


Hi Matt,
Thank you! I knew there had to be a way to do this.

I'm not entirely sure about where I create this array. I'm still quite
new to using e-prime. Is it something I can look up in the user guide?

Thank you for your help!
Caren

On Oct 29, 6:41 pm, Matt Lenhart <matt.lenh... at gmail.com> wrote:
> Hi Caren,
>
> The easiest way to do this would be to place all of your words into an
> array and then use a loop to check the subject's response against all
> of the possible correct answers. For example:
>
> Dim arrCorrect(40) As String
> arrCorrect(1) = "x"
> arrCorrect(2) = "y"
> ...
>
> Then, after the response has come in, you would do:
>
> Dim nCount As Integer
>
> For nCount = 1 To 40
>  If Stimulus.RESP = arrStim(nCount) Then
>   Stimulus.ACC = 1
>   Exit For
>  End If
> Next
>
> This will automatically check the subject's response against every
> possible answer. If there is a match, it sets the ACC property to 1,
> which is what the FeedbackDisplay bases its presentation on (i.e. ACC
> = 1 displays correct feedback). The Exit For command is used to jump
> out of the loop if a match is made (i.e. since the response will not
> match any other possibilities and there is no reason to continue
> checking).
>
> - Matt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime-unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list