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. 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.

  4. 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 …

  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. 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 …

  8. How to declare variable and use it in the same Oracle SQL script ...

    How can I declare a variable and reuse it in statements that follow such as in using it SQLDeveloper. Attempts Use a DECLARE section and insert the following SELECT statement in BEGIN and END;. …

  9. How to check if a variable is set in Bash - Stack Overflow

    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 ? }

  10. Getting the name of a variable as a string - Stack Overflow

    Aug 25, 2013 · While it’s possible to use this to get the variable name assigned to a tuple slot, the slot for var2 will return a variable name of var1. I believe this is because constants are pre-generated and …