I have a class. Within the class in the private section, I have a value (current_position) defined as an int. I have a private function that uses this value. Ahhh, goes like this;
Public class function is called. (PCF)
PCF calls the Private class function (VCF).
This private function contains a loop that calls another private function and the int variable is modified within that 2nd private function. NOW, AS THIS VARIABLE is defined within the private base section, not within the private function, it SHOULD be used globally within the class, i would think.
Problem is, the 2nd private function sets it to a new number but the next time through the loop, the variable is back at its original value.
NEVER MIND. Global variable and the variable name defined in the called function were the same. oops.