Run-time error
David McFarlane
mcfarla9 at msu.edu
Fri Mar 7 17:46:58 UTC 2008
Posting the followup for all...
Dear David,
Thank you for your reply. :)
I have solved the problem.
You are right that this error occurs when I have
two sub-objects (the texts in my case) with the
same name in the same slide. From the script, I
found out the line where the error occured, and
change the name of the text. For example:
Block1Feedback.States.Item("Default").Objects.Add
Block1Feedback_SlideText, "Text8"
E.G., I have problem with "Text8" in the slide
named Block1Feedback, as indicated by the script.
So I changed the name of one of the text 8, and the problem solved.
I think probably this occured because I like to
copy the sub-objects directly from other slides
which have the same sub-objects to avoid typing the same words/contents again.
Thank you very much. :)
2008/3/4, David McFarlane <<mailto:mcfarla9 at msu.edu>mcfarla9 at msu.edu>:
[Replying off list...]
Just a wild guess, it looks like somehow E-Prime thinks you are
trying to create two slide sub-objects with the same name. E-Studio
should catch that before you get to run-time, but that's my best
guess for the error.
If it were me, I would first make a backup of the existing .es
file. Then I would completely rebuild the offending slide object
from scratch, and delete the old one, and see if that makes any difference.
Good luck.
-- David McFarlane, Systems Designer
Dept. Psychology, Michigan State University
At 3/4/2008 02:58 AM Tuesday, you wrote:
>I tried to run the program after doing some modifications on several
>slides, but failed to do so.
>the error message is:
>
>Run-time Error (Line 2054)
>10033: This key is already associated with an element of this
>collection
>
>I found the line where the error occurs, but failed to figure out what
>the problem is.
>
>For example:
>The script is:
>Block1Feedback.States.Item("Default").Objects.Add
>Block1Feedback_SlideText, "Text8"
>
>I checked the setting and property of the "text8", but found that it's
>the same as other texts in this slide. I tried to delete this
>particular text, and add in a new one. The problem remains unsolved.
>May I know what is the problem, and how to solve it?
>
>P.s. I used some slides instead of text displays to better align the
>texts.
>I have totally 11 texts in the slides. Most contents are the same in
>the slides I modified. And everytime after I deleted the error texts,
>I would find another text with the same error in the next run.
--
Best Regards,
¬x¬ü¬À
Ang Mei San
--~--~---------~--~----~------------~-------~--~----~
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