variable question
is it posible to make a global variable,set a new value of the variable in a function and then test in a new function something with that variable from the first function,here is a example of what i am asking:
Code:
new variable |
Re: variable question
Well of course. You're example code is perfectly fine...
Just try it, instead of having to ask. |
Re: variable question
u are sayng that if i am setting a value in a function to a global variable , the global varibale is going to take that value from the function and if i am using it again it will have the value from that function?
|
Re: variable question
Yes... What else would global variables do? There accessed by everything.
|
| All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.