Static Variables
-
I would like to know how... i have already given it a value and now i want to change it again in my programm....:sigh:
just like you change the value of non static variables. static variables are not final variables
Chatura Dilan
-
I would like to know how... i have already given it a value and now i want to change it again in my programm....:sigh:
ClassName.VariableName = newValue;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
if u are using a windows form, try using a separate class within which you declare the public static member, so that it can be used with the class name. its value does change.
Keshav Kamat :) India
-
ClassName.VariableName = newValue;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
I would like to know how... i have already given it a value and now i want to change it again in my programm....:sigh:
-
if you are building a webproject application, using from static variables not a good method you can use ViewState similar static variables
We Can Do Anything, If We Want It