Re: global variable not being recognized by script object subroutine
Re: global variable not being recognized by script object subroutine
- Subject: Re: global variable not being recognized by script object subroutine
- From: Jolly Roger <email@hidden>
- Date: Tue, 27 Feb 2001 13:43:11 -0600
- Replyto: email@hidden
on 2/27/01 12:16 PM, Bill Planey (email@hidden) wrote:
(snip)
>
... To test, I have a display dialog statment as the first line
>
of the DoSubroutine handler:
>
>
display dialog AnyDesktop
>
>
The script breaks with the following message:
>
>
"The variable AnyDesktop is not defined."
>
>
So, I thought it had been defined in the master script, but somehow
>
the handler in the script object is not getting this variable, even
>
though I gave it the "global" designation. What am I doing wrong?
I could be wrong, but - don't you also have to specify that AnyDesktop is a
global in the loaded script object?
global AnyDesktop
display dialog AnyDesktop