Questions tagged as 'variables'

0
answers

Show properties of an object in javascript

I am working on an application that has an object called SessionContext, this object has session variables that are sometimes persistent, inside the application (I did not do it myself) there are many get and Set for example: var ctx = new Ses...
asked by 15.08.2018 / 04:47
1
answer

How do I update a bool in a .h file?

I have the following code in the .cpp file (not the main): switch (opc) { case 1: while (jugando) { //limpiar pantalla h.limpiar(); //elimina scroll bar h.nosc(); /...
asked by 12.08.2018 / 06:26
0
answers

Save with phpexcel in temporary file

is that I have to save an excel in a temporary file but I do not know how Originally this way I keep the excel file header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: atta...
asked by 01.08.2018 / 17:12
2
answers

How to pass more than one argument to variable functions in php

class Alumno{ function mostrar($nombre,$edad){ echo "la edad es $edad, nombre: $nombre"; } } $clase="Alumno"; $func="mostrar"; $arg="juan,23"; $x=new $clase; $x->$func($arg); I only get one argument to the function. I also...
asked by 25.07.2018 / 22:38
1
answer

Javascript: Example with Scope and Closures

I was looking for information about Scope and Closures, and I thought I had already understood it, when I see this example on the page that was the information: let a = 1; const function1 = function() { console.log(a); a = 2; }; a = 3;...
asked by 15.07.2018 / 07:04
1
answer

Join variables in PHP

Hello, I have a form that captures some data, the variables that capture this data are: $parentesco1 = $_POST['parentesco1']; $edad1 = $_POST['edad1']; $NivelAcademico1 = $_POST['NivelAcademico1']; $ocupacion1 = $_POST['ocupacion1']; $salario1...
asked by 18.07.2018 / 04:21
0
answers

Script task parallels using common variables

I'm modifying an SSIS (SQL Server 2008 R2), which originally had a Script Task that did two different things, which I divided into two Script Task. Both have some common variables and when they execute they return the following error: A deadlo...
asked by 10.07.2018 / 09:31
1
answer

Put variables in plain text

Hello good afternoon, sorry, I can put a Laravel variable of some model in a plain text, for example: $mensaje->cuerpomensaje has this message by default Hola [usuario] te damos la bienvenida. How can I do so that in the [usuario...
asked by 27.06.2018 / 00:34
0
answers

Problem with variables and objects. Supestamente local variable behaves as global

I'm doing a code and this happens to me: First I made this class with the intention of using it as if it were a structure of those of C and C ++ class Data: titulo = [] id = [] fecha=[] Then I did a function where I gave values to...
asked by 18.06.2018 / 17:28
1
answer

Link within variable string php

I intend to send an email in php and for that I prepare the variable $cuerpo that I need to contain a link. As seen below, I tried to do echo '<a href="https://datoweb.com">Enlace</a>' But it has not worked. $cuerpo=...
asked by 19.06.2018 / 17:41