Global Variable not incrementing.
Posted on 2007-03-18
For some reason a global variable is not incrementing. I've recently moved over to C# and I'm still getting used to the syntax so I suspect this may have something to do with the problem. why won't the variable increment. I've debugged through it and I've watched the cursor hit ++Global.ProcessCnt; but it won't increment.
private void BtnReverse_Click(object sender, EventArgs e)
Global.ProcessCnt = 1;
Global.NotProcessCnt = 0;
//inside function transactions take place and then the ProcessCnt variable is incremented for each successful transaction
class for global variables
public class Global
public static int ProcessCnt;