problem with a summation object
David McFarlane
mcfarla9 at msu.edu
Tue Feb 28 16:49:44 UTC 2012
Max,
Hmm, another question that could go to PST Web Support at
http://support.pstnet.com/e%2Dprime/support/login.asp . Anyway, what
was the exact line of code that produced the error? Typically, an
"Object does not have a default value" error occurs when you use an
object but fail to specify which *property* of the object you
mean. You can get away with that only when the object does have a
default property, otherwise you must explicitly specify which
property you mean.
To take a contrived example, the following will create such an error:
SummationRTA.AddObservation CInt(ReactionInterval)
whereas the following will not:
SummationRTA.AddObservation CInt(ReactionInterval.RT)
-- David McFarlane
At 2/2/2012 06:02 AM Thursday, you wrote:
>Dear everyone,
>
>I tried to use a summation object to give feedback to experimental
>subjects about their accuracy and reaction times.
>I used following code:
>Dim SummationAccA, SummationAccB, SummationRTA, SummationRTB as
>Summation
>(global variables)
>
>Set SummationAccA = New Summation
>Set SummationRTA = New Summation
>Set SummationAccB = New Summation
>Set SummationRTB = New Summation
>(before running the list)
>
>SummationAccA.AddObservation ReactionInterval.ACC
>SummationRTA.AddObservation ReactionInterval.RT
>SummationAccB.AddObservation ReactionInterval2.ACC
>SummationRTB.AddObservation ReactionInterval2.RT
>(ReactionInterval & Reactioninterval2 are slide objects)
>
>By attempting to add the accuracies and reaction times following error
>occurs:
>"Object does not have a default value"
>
>I used the same principle in further experiments and there it worked.
>I hope there is just a simple mistake, thanks for answers,
>best regards,
>Max
--
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