A variable is a named data storage location in memory. Using variables, a computer program can store numbers, text, binary data, or a combination of any of these data types. They can be passed around in code, to other functions and even other applications.
0
votes
1answer
8 views
saving output as variable
I am working on a batch script and am trying to save part of the output of a command as a variable. My current script requires the user to enter a site code (e.g. 853), and it takes that code and uses ...
0
votes
1answer
44 views
Using a variable ColumnName
I wrote this:
IEnumerable<DataRow> query =
from user in ObjDT_usuario.AsEnumerable()
where user.Field<string>("Name").StartsWith(query,true,null)
...
0
votes
1answer
13 views
django check existence of template context variable
I am writing a django template and I want to differentiate between the existence of a context variable vs it being None, empty etc. I've done my homework and it seems surprisingly hard. Specifically, ...
0
votes
0answers
4 views
clarification regarding environment variables $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']
I have a doubt regarding environment variables $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']. They are Server ...
1
vote
1answer
14 views
Accessing a random Object AS3
I have 9 different movie clips and they are called MC1, MC2, MC3,...,MC9. Then I want to add them randomly. I made a randomizer and it generate numbers from 1 to 9 randomly. And now how can I add them ...
0
votes
0answers
23 views
How to pass variable from view function to jinja2 template - Flask app
I'm writing a basic messaging function inside my app and it does what it's suppose to do. It sends, receives and sort messages in inbox and outbox, and I wanted it to show the nicknames of those who ...
0
votes
1answer
36 views
Passing variables between batch file and .sql file for mssql server
I am attempting to create a batch file in windows that will take a user's input, and pass that along to a sql file containing the following query, so that I can set a siteid, like in the following sql ...
-1
votes
1answer
22 views
Grabbing specific XML node with PHP
I have a xml request that looks like the code below and I would like to store in a PHP variable ONLY the value in the node RATE that should come in the Response.
How could I achieve that?
$zip = ...
2
votes
2answers
30 views
PHP a concatenate variable issue
I'm trying to concatenate several variables following http://php.net/manual/en/language.variables.variable.php but I don't get why it's not working
<?PHP
$test1 = 'test1';
$test2 = 'test2';
...
3
votes
2answers
28 views
How to reference a variable from a mat file numerically in MatLab?
I am writing a script for MatLab where a *.mat file is loaded using the load command to the workspace. My problem is I am not sure how to reference a variable name. I know what data i need based on ...
-1
votes
1answer
25 views
How to check if 1 (or more) variables out of a set of variables is equal to a value?
I can't find out how to check if 1 (or more) variables out of a set of variables is equal to a value:
p.e.
let linecurr = getline(endlijn-line)
let lineabov = getline(endlijn-line-1)
if ...
1
vote
1answer
26 views
What Unicode symbols are acceptable in BASH variable names?
What Unicode symbols are acceptable in BASH variable names? Does the same list of symbols apply to CSH and TCSH?
-1
votes
1answer
44 views
What Unicode symbols are accepted in Python3 variable names?
I want to use a larger variety of Unicode symbols for variable names in my Python3 scripts. What characters are acceptable to use in Python3 variable names?
0
votes
3answers
42 views
pass variable to another function
I create a variable in one function, and then call another function which I need to pass this variable to, how do I do this?
code at the moment:
$('.search-btn').click(function(){
var desiredPage = ...
2
votes
2answers
26 views
Javascript highchart passing a variable
I used the $.get to get the value generated in test2.php, when I do an alert(data) I get the exact value I want, but I don't know what to do to stock the value obtained in the variable y :
var ...