Strange Rev 3.5 problem
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Mar 8 21:44:59 EST 2012
Hi,
You might have something like this:
local s
on mouseUp
local s
put s
end mouseUp
which should be either
on mouseUp
local s
put s
end mouseUp
or
local s
on mouseUp
put s
end mouseUp
If you use local s in multiple handlers, then the error will show up for every handler containing local s, until you remove the local s that's outside your handlers.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
On 9 mrt 2012, at 03:35, Paul D. DeRocco wrote:
> I'm recompiling an old program with a few minor mods, and now I'm getting
> the following error on a line in my first handler that merely says "local
> s":
>
> stack "main": compilation error at line 139 (local: name shadows another
> variable or constant) near "s", char 3
>
> If I change "s" to some other variable, that error goes away, but appears on
> the next handler (of many) that says "local s" in it. Nowhere do I have a
> global variable or constant called "s". The Message Box global variables
> doesn't show anything called "s". None of the other fileds or controls have
> anything called "s" that I can find. The dictionary doesn't show anything
> built-in called "s". What's the big deal about "s" all of a sudden?
More information about the use-livecode
mailing list