Nov-06-2017, 12:07 PM
Looking for some clarification on the use of global variables.
Suppose I need a single variable called "Logged_In" that's available everywhere in my program (eg in multiple functions).
Can I simply declare it as global in the main code or must I also declare it as global in all the functions that need to use it?
Thanks
Suppose I need a single variable called "Logged_In" that's available everywhere in my program (eg in multiple functions).
Can I simply declare it as global in the main code or must I also declare it as global in all the functions that need to use it?
Thanks