Originally Posted by
MetLHead
Hi Turner,
It seems odd that your control *wouldn't* clear the local variables on M99. The reason that they are called "local" variables is because they are only valid for the sub that they are used in. Say for example your program O0001 used variable #3 as a loop counter. Let's also say that your program O0002 also used variable #3 for something. The idea is that program O0002 can use this variable *without* disturbing the value of #3 that program O0001 is using. So after the M99 in O0002, the value in #3 that program O0001 sees is the same is it was before the subprogram call, even if program O0002 also used #3.
What control are you seeing this on?
Thanks,
Scott