Questions tagged as 'variables'

0
answers

Python 3 - Is assigning a value the same as initializing?

When we create a variable var1 = function1 () is it assumed that an assignment statement does not return a value by itself? or is it different if it is a function?     
asked by 19.06.2018 / 16:05
1
answer

How to make random names

I want to make a random text in a text written by a php web, the theme is that the one I have created creates the same name in all texts, and I want it to be random, I do not know if I explain it. I have this: function generateRandomString($le...
asked by 03.06.2018 / 19:46
1
answer

php jquery get value from a div

I need to pass to letters (using a PHP script) a number that is inserted into a div by means of a calculation in Jquery. I need to put this value in a PHP variable. I can not do it. Any suggestions? Here the code: <script type="text/j...
asked by 31.05.2018 / 20:29
1
answer

JS Pass a trigger to the value of a variable at the instant it is created

For example: var items = jq(".li"); for(var i=0; i<items.length; i++){ var item = jq(items[i]); item.click(function(i){ console.log("i: ", i); }); } The problem with this code is that when the click event is triggered...
asked by 23.05.2018 / 16:43
0
answers

Variable declared in subprocess is not passed to main

I have this program whose behavior has to be like the one described below: For the development of a computer system of a company, it is necessary to implement a type of data that represents the products used in the factory. It is desired that...
asked by 20.05.2018 / 21:29
1
answer

How can I add a user's id to a redirect file in html?

This is the html that I use to redirect, how can I make the end of the url where it says "subid=" add the id of a registered user on my web page? that is, when the user joins with id = 57 go to www.example.com/redirect.html, take him to link ....
asked by 30.04.2018 / 17:37
1
answer

Function to treat variable as Singular or Plural

I have the following code: //DEFINIENDO VARIABLES GLOBALES br = "<br>"; olli = "<ol><li>"; liol = "</li></ol>"; olc = "</li></ol>"; ulli = "<ul><li>"; liul = "</li></ul...
asked by 20.04.2018 / 04:24
2
answers

How can I create several global variables in Winforms C #?

I mean, for example, that you have a variable called "A" in a form 1 and that you can change the value of "A" from form 2 or 3 (all)     
asked by 12.03.2018 / 18:37
1
answer

Fix a javascript function

Greetings guys I have the following code function botonver(a, b) { imgnormal = "media/imagen/pdf.png"; tituloboton = "Ver PDF "; botonpdf = "<img class = 'clase2' src = '" + imgnormal + "' width = '50%' />"; iniciotb = 4; return "&l...
asked by 11.03.2018 / 03:08
1
answer

undefined index php

I have this code, the fact is that in the line of $ _SESSION ['students'] I miss the error. What I want is that if that array of students does not exist that believes it, and when the program starts, since it does not exist, it gives me that err...
asked by 17.01.2018 / 11:17