Calculating Total Misses

David McFarlane mcfarla9 at msu.edu
Mon Sep 21 18:43:24 UTC 2009


Missing a small step here, as you cannot directly use a variable as 
an attribute reference in your feedback display.  So just before your 
feedback display add a bit more inline script like

c.SetAttrib "misses", misses

(Note that variables and context attributes may have the same name.)

See the Context topic in the online E-Basic Help for more details.

-- David McFarlane, Professional Faultfinder


At 9/19/2009 06:38 AM Saturday, you wrote:

>Hi Patricia,
>
>This should be simple. Declare a global variable 'Dim misses as
>integer'. At the start of the script, misses = 0. In an inline after
>the slide object, 'If slide1.ACC = "0" then misses = misses  + 1'. At
>the end you can then have a feedback with 'you have lost [misses]
>amount of points'
>
>I hope this answers your question,
>Tim
>
>On Sep 18, 7:04 pm, Patricia B <pbren... at odu.edu> wrote:
> > I am conducting an airport luggage screening and need to have feedback
> > which calculates the total number of misses in a block. Each block has
> > 100 images and at the end of the block the feedback should say
> > something along the lines of you have lost x amount of points (which
> > are deducted for misses).


--~--~---------~--~----~------------~-------~--~----~
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