Blind99
10-30-2009, 04:37 AM
Hey, im currently programming a windows based application using C#.
Here's my problem
Ive got a global variable , name it n_global type double. I wish to edit it using a button. So far so good.
Lets say that the button value 1, the user clicks the button and the variable value becomes 1, but heres the thing, I want the value to be 11 if the user clicks another time.
Dont forget, it cant be a string the variable as to stay a double for later purposes.
Ideas?
Here's my problem
Ive got a global variable , name it n_global type double. I wish to edit it using a button. So far so good.
Lets say that the button value 1, the user clicks the button and the variable value becomes 1, but heres the thing, I want the value to be 11 if the user clicks another time.
Dont forget, it cant be a string the variable as to stay a double for later purposes.
Ideas?