About 50 results
Open links in new tab
  1. How can I use a global variable in a function? - Stack Overflow

    Jul 11, 2016 · How do I create or use a global variable inside a function? How do I use a global variable that was defined in one function inside other functions? Failing to use the global keyword where …

  2. What is the difference between a static and const variable?

    Feb 7, 2010 · A static variable means that the object's lifetime is the entire execution of the program and it's value is initialized only once before the program startup. All statics are initialized if you do not …

  3. Setting JAVA_HOME environment variable in MS Windows

    14 Set the JAVA_HOME Variable Windows 7 – Right click My Computer and select Properties > Advanced Windows 8 – Go to Control Panel > System > Advanced System Settings Windows 10 – …

  4. MySQL: @variable vs. variable. What's the difference?

    Function variable for which the scope ends when function exits. Package body variables defined at the top of package and outside all functions whose scope is the session and visibility is package.

  5. JavaScript check if variable exists (is defined/initialized)

    Feb 6, 2009 · If variable was not defined at all (for instance: external library which define global variable is not yet loaded - e.g. google maps), you can check this without break code execution using try …

  6. Adding a directory to the PATH environment variable in Windows

    Mar 3, 2012 · I am trying to add C:\\xampp\\php to my system PATH environment variable in Windows. I have already added it using the Environment Variables dialog box. But when I type into my console: …

  7. c++ - What are the differences between a pointer variable and a ...

    30 A reference is an alias for another variable whereas a pointer holds the memory address of a variable. References are generally used as function parameters so that the passed object is not the …

  8. Command line to remove an environment variable from the OS-level ...

    70 To remove the variable from the current command session without removing it permanently, use the regular built-in set command - just put nothing after the equals sign: set FOOBAR= To confirm, run …

  9. python - How do I check if a variable exists? - Stack Overflow

    May 9, 2009 · exists("variable_name") Will return True or False To check if a variable exists in the local scope in Python, you can use the locals() function, which returns a dictionary containing all local …

  10. How to check if a variable is set in Bash

    Aug 30, 2010 · How do I know if a variable is set in Bash? For example, how do I check if the user gave the first parameter to a function? function a { # if $1 is set ? }