
12-03-2009, 05:01 PM
|
 |
Impetuous & volatile
* Expert *
|
|
Join Date: Apr 2005
Location: 127.0.0.1
Posts: 2,171
|
|
|
I can't tell directly from your code why the total is being wiped out, however, I do have a feeling that calling Form_load is the wrong approach inside this function. If the variable t contains the total of a round, are you sure that you've declared this variable on a class scope, so it maintains it's value even the the function ends? Once the function ends all variables are "deleted" and thus their values will be reset next time this function is called.
|
__________________
Reading is the foundation for all knowledge - Unknown.
|