Trouble after converting from 1.0 to 2.0

108 views
Skip to first unread message

Jonathan Driver

unread,
Sep 16, 2013, 1:28:59 PM9/16/13
to e-p...@googlegroups.com
I am using a script that was designed in 1.0 and tried converting to 2.0 and it stopped working. I am getting this error message "Run-time Error (Line 3625) 10039: The value for the KEY parameter is either invalid or cannot be found in this collection". Neither my adviser nor I can figure out what this means. The script can be found at http://mindbrain.ucdavis.edu/labs/luck-lab/change-detection. If anyone has any ideas please share. I am new to E prime so it is obviously really confusing.


Thanks,

Jonathan

David McFarlane

unread,
Sep 16, 2013, 3:29:42 PM9/16/13
to e-p...@googlegroups.com
http://www.lmgtfy.com/?q=e-prime+error+10039

At 9/16/2013 01:28 PM Monday, Jonathan Driver wrote:
>I am using a script that was designed in 1.0 and tried converting to
>2.0 and it stopped working. I am getting this error message
>"Run-time Error (Line 3625) 10039: The value for the KEY parameter
>is either invalid or cannot be found in this collection". Neither my
>adviser nor I can figure out what this means. The script can be
>found at
><http://mindbrain.ucdavis.edu/labs/luck-lab/change-detection>http://mindbrain.ucdavis.edu/labs/luck-lab/change-detection.

Paul Groot

unread,
Sep 16, 2013, 3:54:23 PM9/16/13
to e-p...@googlegroups.com
The error occurs on a line that references S1, where it tries to set the background color of text object 'Text6':

'Text6
Set S1_SlideText = CSlideText(S1.ActiveSlideState.Objects("Text6"))
...
S1_SlideText.BackColor = CColor(c.GetAttrib("color5")


The error message is rather cryptic, but attribute "color5" is probably not defined in the current context. The List object contains "color?" attributes, but they don't contain any value. This often means that the attributes will be initialized using some inline script. However, if you look at the inline scripts, you can see that only color0, color1 and color2 are properly initialized. So, it seems that the original code used more color objects, but only 3 are used in this version (perhaps EP1 ignored this specific error). I think that you can solve it simply by removing the corresponding text objects from S1 (Text4, Text5, Text6)  The same holds for S2.

Best,
Paul

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5dab4211-07e2-47c0-878a-3fb63441947d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages