noelle cheng wrote:
> 
> Hi,
> 
> Thank you Florian and Warren.
> 
>  >>This is the line which stopped the running of the program :
>  >>goMulti.mSetUserOption(pIndex,pIndexValue
> 
> >Somehow or other the parent script reference that *should* be in the
> >goMulti object variable didn't get instantiatiated. This means (probably)
> >there is a line of Lingo that reads something like:
> >
> >   goMulti = new ( script "blablabla" )
> >
> >...and that this line is in a handler that didn't execute.
> 
> Is the execution of the code  from top to the bottom within the code?

yes, unless you call other routines, the execution might jump
> 
> >The other possibility is that the object was zeroed (cleared) at some
> >point later on.
> 
> I found this line of script later in the code. This is the only other
> reference to goMulti.
> 
> vUsrOption = goMulti.mGetUserOption(pIndex, pIndexValue)
>      vCorrectOption = goMulti.mGetCorrectOption(pIndex, pIndexValue)
> 
>    Could this have anything to do with the problem? Yet these two lines
> also appear in the original program.

no

you must have overseen the new call. 
open your script in a script window.
click into the script text
Select EDIT->FIND->TEXT
enter goMulti in the "find" line
check "all casts"
press FIND again and again until you find something like Howdy said
(goMulti=new ect)
This way you should find it

Another possibilty might be that goMulti has been declared in another
movie and the movie you are talking about is a miaw or being played by
the "main" movie. Then you should find it there

florian

> 
> >The final possibility is that the variable 'goMulti' is not in fact a
> >global variable after all, or was not declared as a global prior to use in
> >the specific piece of code that's giving you trouble.
> 
> Yes it was declared as a global at the beginning of this script as in
> global goMulti.
> 
> >On the left-hand side of the Debugger is a list of handler names, with the
> >one you're currently in highlighted. You can use that stack to step back
> >out of the functions that led to the one having trouble. Sometimes this
> >can be useful in determining where things went wrong.
> Thank you for explaining.
> 
> But the question remains:
> 
> Is it possible for two programs with the same code to yield different results?
> 
> Noelle
> 
> [To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
>learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to