Local Variables Acting Like Globals?

hey guys-

iam having troubles with a script I am workin on, but I can't see why.

Basically it is a naming problem, but it shouldn't be happening. In fact if it were a naming problem, it would have occured mech earlier in the script. anyways, is there any way to clear the variable cache at the end of a proc? I thought I saw that there wasn't pn another website, but thought I might hit you guys up for some help on it.

thanks

scott

What is variable cache?

THis is a scoping question...

Be aware thet EVERYTHING typed into the script editor without a scope declaration will become GLOBAL. And theres no way of deleteng global stuff. Howvever you can eesily type a scope thet defines where ethe variables live.

so tying

int $i

in script editor makes it global!

trping

{
int $i;
}

makes it local to live within {} it dies at the end of the }