DEFINE CLASS clsTest AS line Name = "clsTest" PROCEDURE Init This.Test1() ENDPROC PROCEDURE test1 * Create llSuccess, local by default: llSuccess = .F. If this.test2() *<Some code> endif ? llSuccess && turned into .T.! ENDPROC PROCEDURE test2 * no parameter is passed ! * Create llSuccess, local by default: llSuccess = .F. *<Some other code> llSuccess = .T. RETURN llSuccess ENDPROC ENDDEFINEI've always thought that a variable created in a method is by default LOCAL and cannot be accessed by higher or lower methods, that is (in my mind) that it cannot be changed by another lower / higher method. That's what I read in the Help.
LOCAL llSuccess && .F. by default, anywayThe bottom line of this is that it's a good habit to always declare explicitly the variables LOCAL when one creates a local variable in any method.
Who tries can sometimes be wrong, who doesn't is always