Most voted "variables" questions
A variable is a named data storage location in memory. Using variables , a computer program can store text numbers, binary data, or a combination of any of these data types. They can be transferred in code, to other functions and even other applications.
Learn more…645 questions
Sort by count of
-
0
votes0
answers22
viewsSpyder Variable Explorer Error
I get this error message when I try to look at the variables in Spyder. But there is no error in the console. The code runs normal. But when I try to access the variables in Variables Explorer, this…
-
0
votes0
answers264
viewsDeclare variables in a Trigger in mysql
I am creating a Trigger in mysql with use of variables and this returning me an error and as I am starting to use mysql now I could not solve the problem, follows the error: Executing: DROP TRIGGER…
-
0
votes1
answer111
viewsHow to access a global application.json variable in . NET Core c#
I am new with programming and I’m having difficulty accessing a Token that is as variable in the file application.json. It is a console application, the goal is only to use the token of the global…
-
0
votes3
answers307
viewsHow to save parts of a json in variable?
I’m new with programming and have a project in Console Application, which returns the call of an API the Json of it. I would like to know which command I can only get a part of json with. For…
-
0
votes0
answers53
viewsCreate a variable having in its name another variable (python)
I’m doing a job in college that consists of analyzing data from covid-19 (through an excel spreadsheet). However one of the questions that my prof. asks is that with indication of a given week the…
-
0
votes1
answer67
viewsHow to store the result in a variable to use later? - PHP
How can I store the result of this code within a variable? I want to store in a variable so I can display the result at any time using <?php echo $row['resultado']; ?> for example. Follow the…
-
0
votes0
answers13
viewsI can’t get a variable out of a function
I’m trying to make a currency converter, but I can’t get the object out of the fetch, although I read this question don’t understand yet what I should do, I am obliged to make the conversion within…
-
0
votes1
answer51
viewsHow do I get the sum of the values I add to the list?
I did this program to list items from a budget. It adds, a brief description of what was added and shows the value of the item. I want to sum up all the values and show a total that updates every…
-
0
votes1
answer30
viewsDisplay Future variable on an Elevatedbutton
I am making the call in my database of the boarding number, I need to put this number inside a button, but my variable "boarding" appears as undefined inside the Elevatedbutton import…
-
0
votes1
answer39
viewsProgramming logic (Portugol) (Visualg). How can this variable (MA) show me the exact name of the student who got the highest grade?
The program is working perfectly. My doubt is only about this algorithm, I can not understand how this variable (MA) can show me the highest grade only with the attribution MA <- A. If someone…
-
0
votes1
answer31
viewsGLM with non-significant P values
My dataset has four variables: a dependent (Y), and three independent (X1, X2 and X3): > dput(dados) structure(list(Y = c(29.1, 27.7, 28.2, 28.1, 27.3, 25.9, 27.2, 30.6, 27.6, 28.4, 26.6, 28.1),…
-
0
votes0
answers13
viewsHow to assign the return of a Fetch function to Javascript variables
Maybe the solution to my problem is extremely trivial, because I do not understand much of Javascript, however I did not find the solution. I have developed an API and intend to consume it so that…
-
0
votes1
answer47
viewsHow to use a variable of an X function in a Y function in Python?
I am a student of the first period of Eng. of Computing I’m having some problems to understand how I could (if possible) use the variable of one function within another, the two being executed…
-
0
votes0
answers14
viewsExecution interrupted
I’m trying to run a script, but the following error is appearing: udunits system database read from C:/Users/André/Documents/R/win-library/4.1/udunits2/share/udunits/udunits2.xml summarise() has…
-
-1
votes1
answer3126
viewsHow to share variables in Crystal Reports
I have a variable in my report and would like to use it in a sub-report. How do I do this?
-
-1
votes2
answers291
viewsVariable name passed in function argument
Situation I’m willing to develop this function function ve($var, $dieAfter = false){ $nomeDaVar = ????; echo '<pre>'; echo '$'.$nomeDaVar." = "; var_export($var); echo '</pre>'; if…
-
-1
votes1
answer1866
views -
-1
votes1
answer56
viewsWhat’s wrong with this concatenation?
$('#cidades').load('cidades.php?estado='+$('#estados').val()+'&cliente='+idcl);…
javascript variables get string-concatenationasked 8 years, 11 months ago Gladison Neuza Perosini 861 -
-1
votes2
answers331
viewsString Statement
I’m declaring a variable like this: private String[,] soloMarciano; Can you do this in Java? Because I need to read two X and Y positions.
-
-1
votes1
answer63
viewsSQL - Problem Naming Variables
Since I don’t know how to explain my problem, I’ll give you an example: select cod_prod, sum(quantidade) as "Quantidade 2013", sum(quantidade) as "Quantidade 2014" from itens group by cod_prod…
-
-1
votes1
answer477
viewsHow to break (split) strings and put result into separate variables?
public class Teste30 { public static void main(String[] args) { // TODO Auto-generated method stub String teste = "Isso funciona mesmo, ok?"; String [] vetor = teste.split(" "); String aqui = null;…
-
-1
votes1
answer1006
viewsVariable with href
I need the cellular variable Celular: $lnbusca[celular] to click and appear on the sample dial screen <a href="tel:55555"> chamar 5555</a> for the time the user click appears the number…
-
-1
votes1
answer68
viewsVariable-sized Object may not be initializad
Problems in C. This error is showing: Variable-sized Object may not be initializad What to do to fix this error? Since I have already initialized everything. LINE 66, 67 and 68 #include…
-
-1
votes2
answers381
viewsHow to create several variables of the same type without repeating conditions?
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Categoria c1 = new Categoria(); c1.categoria = "-Reprodução"; c1.nome = "Ahmed Shafik";…
-
-1
votes5
answers2297
viewsStore IF output in a variable to use later
This code is in error when I call the variable $os: $os = (if($status_os_cliente == "A"){ echo "SIM"; } else{ echo "NÃO"; });
-
-1
votes1
answer453
viewsHow to read an integer with no limit of digits in C
It has some way of reading an integer from the keyboard without limit control of digits. Like I need to pass a giant number via keyboard to a variable and then pass all the digits of that number to…
-
-1
votes1
answer28
viewsParameter over 16 javascript error characters
I’m trying to pass a variable by an onclick function but when I see the return is not coming the whole value, as below: $("#nomePromocao").append("<tr><td><button…
-
-1
votes1
answer292
viewsConvert 1.0 (string) to 1.0 (double) in c#
Good evening, everyone, I am trying to solve a challenge in C# but when I try to convert two variable string with point (Ex. 1.0 7.0) to two double variables, loses the point and is 10 70. Can…
-
-1
votes1
answer37
viewsTake variable from one form and pull into the other form
Good night, I’m racking my brain on how to take the value of a form and store it in a variable so I can access that value in any other form. I tried already as public Static instantiating but did…
-
-1
votes1
answer113
viewsIdentify multiple numbers in a variable
Create a program that given a set of temperatures of 8 Portuguese cities, identified by an order number, indicate which have a temperature above the country average. My problem is identifying these…
-
-1
votes3
answers856
viewsValidate input without variable
num = int(input("Digite um numero: ")) if num <= 10: print("Ok, numero registrado") else: print("Numero invalido, digite outro numero menor que 10") If the number is greater than 10 is to type a…
-
-1
votes1
answer327
views -
-1
votes1
answer110
viewsUsing static or dynamic variables in my codes? What would be more efficient or better seen in the job market?
What’s better: Using static or dynamic variables (using pointers in the case) in my codes? What would be more efficient or better seen in the labour market? I imagine that each one has its most…
-
-1
votes2
answers294
viewsConcatenate variable with array in PHP
I have a variable nome, and a array. How to put this variable in array? Example: ['dia'].$nome; When I do this, returns error. The array dia contains a string, as an example: "Domingo", and nome the…
-
-1
votes2
answers91
viewsWhen inserting into a vector always overrides the previously inserted value
In my code when adding a contact (X), and see the contact list, I have contact X, however when adding another contact (Y), and go see the list, the contact Y replaces the X, how can I add several in…
-
-1
votes2
answers84
viewsHow do I get a given function to return the value of a date variable and a numeric one in php?
I created a function that calculates the next working day of a given date that it receives, but in addition to returning me this new date I wanted it to increment one number more than one counting…
-
-1
votes2
answers147
viewsPass values to 99 fields in a loop
I would like to pass values to 99 fields in one loop; For example: for(int i=1; i<= 99 ; i++) { nomedocampo + "i" = "valorqualquer"; }
-
-1
votes1
answer328
viewsIf I declare a global variable for my page, is it accessible only in this session?
Hello, I have a question. If I declare global variables for page, they are unique to this session or they can be changed in other sessions? I had problems in other systems that I developed with the…
-
-1
votes2
answers73
viewsVariable is not receiving value - C#
Please, I need help, I have three whole variables, one of which receives the result of the division of the other two, but the recipient is not receiving the value, would anyone know why? The two…
-
-1
votes1
answer72
viewsHow do I get variable values out of a function?
I have a function, name rounds, with another function inside, and in this function that ta inside I have a declared variable, it calls pecas_comp, i need it in function rounds but am not getting…
-
-1
votes1
answer30
viewsPlace date command inside e-mail
I own a script, and would like it to send an email to users informing the time that the same was executed. Example: $script_deploy.sh # Envio de e-mail aviso deploy echo "=> Envio de e-mail para…
-
-1
votes2
answers27
viewsI have a variable set by parameter. How do I use it on buttons (Action Performed)?
I received this variable (per parameter) from another Jframe: public App(int id) { System.out.println("teste: "+id); /* codigo aqui... */ } and wanted to use inside that 'action performed button':…
-
-1
votes1
answer72
viewsedit local variable out of function
Hello! How do I change a local variable from a function by external commands to the function? Example: Create the function def totalValue(type): try: valor = float(texto[0]) except: valor = 0 total…
-
-1
votes1
answer37
viewsClass method returns null
I have a class to pass data but when I call the class method this data appears as null. Why? class Test { constructor(data) { this.myData = data; } MyFunction = () => { return this.myData; }; }…
-
-1
votes1
answer412
viewsSet variables with uppercase letter in Python
Well, I’m learning python and from time to time I’ll read other dev’s codes to learn something and variables appear with uppercase letters. Examples: RETRIABLE_STATUS_CODES = [500, 502, 503, 504],…
-
-1
votes1
answer52
viewsVariables with absurd values in the execution of the program in C
I’m doing some C exercises and the execution of my super ultra 5-line program is in trouble. I’ve seen several questions around suggesting that it might be an unrelated error that would be…
-
-1
votes2
answers212
viewsHow to Keep the values of a variable, even when restarting the program, in Javascript
I have the following problems every time I create a Javascript program and declare the values of the variables, when restarting the program the value of the variable is lost. ex: var usuario = {…
-
-1
votes2
answers73
viewsHow to access a variable from another function?
Talk guys, found a difficulty, beginner in JS. I have 2 functions: function getHeight() { var tdHeight = document.querySelector(".info-altura").textContent; console.log(tdHeight); } function…
-
-1
votes1
answer110
views -
-1
votes3
answers81
viewsConfusing behavior in changing the value of variables in js functions
Why time1 print 3 and time2 print 2? let gols = 1 const time1 = function () { console.log(gols) gols = 2 } gols = 3 const time2 = function () { console.log(gols) } time1() // 3 time2() // 2…