IT variable becomes Local
Posted: Wed Jan 17, 2018 3:23 pm
Hi
This might not sound like much of a problem but it's an itch that I need to scratch and it has happened a few times over the years.
I always have variable checking set to on in the editor preferences. I never need to explicitly declare the IT variable at the top level as it's presumably a default Application global.
Every so often though, while I am editing a stack with many cards and substacks that work and have worked for ages,the system (6.7.11) decides that IT hasn't been declared. I can exit livecode and restart -but no joy. If I declare "Global IT" at the top of the script or within the handler everything is fine - but why?
Does anyone know a "poke" in the binary stack file (ouch!!) that could save me from having to recreate the stack again with cut and paste?
It's not a deal breaker but like everything out of the ordinary - I want to know why.
lagi
This might not sound like much of a problem but it's an itch that I need to scratch and it has happened a few times over the years.
I always have variable checking set to on in the editor preferences. I never need to explicitly declare the IT variable at the top level as it's presumably a default Application global.
Every so often though, while I am editing a stack with many cards and substacks that work and have worked for ages,the system (6.7.11) decides that IT hasn't been declared. I can exit livecode and restart -but no joy. If I declare "Global IT" at the top of the script or within the handler everything is fine - but why?
Does anyone know a "poke" in the binary stack file (ouch!!) that could save me from having to recreate the stack again with cut and paste?
It's not a deal breaker but like everything out of the ordinary - I want to know why.
lagi