This should be simple!
Scott Rossi
scott at tactilemedia.com
Tue Mar 6 14:39:43 EST 2007
Recently, Len Morgan wrote:
> I wish it was that simple but I have the globals defined in both the handler
> and the function that is checking it. That was my first problem because I did
> not have them declared in one place. After I fixed that, I still had the
> problem. What made it strange was I used a put statement just before the if
> to see if it was "true" just before I was going to test it.
Len:
There's probably something else going on in your script. When I place the
following in a button, I get the result I believe you want:
global gSaveInputPath
on mouseUp
put true into gSaveInputPath
send "testValue" to me in 1 second
end mouseUp
on testValue
if gSaveInputPath then
answer "Yes, it's true"
else answer "Something's wrong"
end testValue
Checking gSaveInputPath from the message box also shows true.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list