Questions tagged as 'variables-globales'

1
answer

Environment variables

I need to create an environment variable to share information between two Python scripts. Let me explain, I have created three scripts in Python to check the operation or rather verify that the environment variable is created. These files are...
asked by 03.03.2018 / 23:49
0
answers

Create a global variable in laravel 5.5

I would like to create a global variable in laravel to be able to use it in controllers as in views; I would like to do this without having to use Session or Cache . Is there any colleagues mechanism? Investigating I realize that in...
asked by 16.04.2018 / 18:28
0
answers

In variable, assign value, change it in one function and pass the changed value to another

I'll get to the point; I'm doing something like this: public class clase{//clase principal int valor;//variable global if (post.containsKey("xempieza")) { if(valida()){ bit.bitHtml = recibedato(); //bit.bitHtml obtien...
asked by 18.04.2018 / 18:21
0
answers

Variable changes to unexpected value

I have a problem with a variable that is called contador . I declared it with a value of 0 but when running the program the variable contador has the value of 8. This is the only part of the code that uses the variable: public...
asked by 27.02.2018 / 19:45
1
answer

How can I put this out of OnCreate on Android

I am using global variables in the following class: public class VariablesOpcion_HassMovil extends Application { private String cuenta=null; public String getCuenta(){ return this.cuenta; } public void setCuenta(String Cuenta){ this...
asked by 28.01.2017 / 22:48
3
answers

Convert local variable to global. PHP

I am trying to collect the fields from a MySQL registry, and for this I use the following: $reg = mysql_query("SELECT * FROM draws WHERE urlID='$urlID'"); while($data = mysql_fetch_array($reg)) { $title = $data ['title']; }...
asked by 20.05.2018 / 11:54
1
answer

How can I access a variable in a config.ini file?

How can I get the value of a variable found in the file config.ini in the root of my hard drive and be able to use it for a SQL query?     
asked by 03.07.2018 / 21:36
1
answer

Java environment variables

enter the description of the image hereintroduce the description of the image here Forgive if the question is very elementary. I had version 6 of java installed on my pc. When trying to start eclipse Oxygen did not work with that versio...
asked by 16.12.2018 / 13:11
1
answer

How to create in JS a variable equivalent to a static variable in PHP?

function cambiarPropiedades(elemento){ if(typeof control === "undefined"){ control = true; //No puedo usar el operador var } if(control == true){ //Código a ejecutar control = false;...
asked by 26.11.2017 / 13:44
0
answers

Global variable in laravel 5.7 (to access it from any Controller or class)

I need to save an object that simulates a database in a global variable. I'm not interested in accessing any real database at the moment, but I'm interested in accessing that object from the different controllers to simulate my crud. I tri...
asked by 30.11.2018 / 10:50