string input with spaces
David McFarlane
mcfarla9 at msu.edu
Thu Apr 14 21:01:20 UTC 2011
Matt,
Stock reminder: 1) I do not work for PST. 2) PST's trained staff
takes any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp , and they
strive to respond to all requests in 24-48 hours -- this is pretty
much their substitute for proper documentation, so make full use of
it. 3) If you do get an answer from PST Web Support, please extend
the courtesy of posting their reply back here for the sake of others.
That said, here is my take...
In your .edat files, take a look at your .RESP value strings, and
compare those to the strings in your Correct attribute. Does the
subject's RESP have a "{SPACE}" wherever they entered a space
character? Then your Correct attribute has to do the same. Please
see the "{key} nomenclature" topic in the online E-Basic
Help. Alternatively, you could add inline code to replace the {key}
nomenclature with proper text, as in the example provided by PST's
own Matt Lenhart at
http://www.pstnet.com/forum/Topic2194-5-1.aspx (must register &
login to download).
-- David McFarlane, Professional Faultfinder
At 4/14/2011 10:39 AM Thursday, you wrote:
>Hi all,
>
>I have trouble with a problem solving experiment a student in a class
>I'm TAing put together. Rebus puzzles (e.g.
>http://preview.tinyurl.com/3s73mwj)
>are being used as the task. The answers to these puzzles are short
>idioms or sayings (e.g. "a cut above the rest").
>
>The script has a slide which presents the puzzle stimulus (picture
>file) and echoes input from the keyboard. Problem is, when the answer
>held in our [CorrectAnswer] attribute is a string that contains
>spaces, we either get an error message "Correct is not part of
>allowable," or the script fails to recognize that a correct answer has
>been provided. I've mucked around with various settings of allowable
>input in the Duration/Input and Echo submenus of the SlideObject, and
>am having trouble remembering which mapped to which.
>
>I think the problem is somewhere in how the input is being parsed and
>compared to the value held in the list attribute [CorrectAnswer]. Our
>current workaround is to omit spaces from all responses, but it seems
>like the fix should be fairly simple (whatever it is). Am happy to
>send a copy of the experiment on request.
>
>Thanks for your help,
>-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