[Gambas-user] I can't believe this

RICHARD WALKER richard.j.walker at ...247...
Tue Oct 9 01:09:23 CEST 2012


Something is happening to a variable in a program I am writing which I
cannot explain and can find no reason behind it.

A public boolean is set in one procedure and tested in another in the
same class file. In between, it is changed, somehow,  from True to
False.

If I set the default value of the boolean as True in its public
declaration, then the value in the procedure which tests it will see
True - not always, but more often than it should.

There are only two procedures in which the variable value is altered.
Each of these procedures can call the procedure where the value is
tested. At the call to the testing procedure the value may be True but
the testing procedure sees False.

What could possibly be going on?




More information about the User mailing list