You're right - it does (normally) mean that the variable you are trying to declare shares a name with a previously declared variable.

No idea why you're getting it in this case.

Poor ideas :
  - If you like, send me the script and I'll look to see if it fails here
  - try it in an earlier (or later) version of LC
  - change every occurrence to 't2' and see what happens.

-- Alex.


On 10/10/2011 11:01, Graham Samuel wrote:
Working on a script I've been using for some time, I just got a compilation error for the 
local definition of a variable called "t1". The error was:

local: name shadows another variable or constant

The only meaning I can put to this is that I had already defined this variable 
either as a local, global or constant in the current script - but searching the 
script shows that I haven't. Also since I'm using explicit variables, when I 
delete the (only) definition of t1, I get the usual error warning me the name 
is undefined. So 'shadow' must mean something else.

I've tinkered around but I can't make the error go away.

Can anyone tell me what I did wrong? Doubtless it's some kind of finger trouble.

TIA

Graham

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to