Questions tagged [variables]
THIS IS AMBIGUOUS; USE SPECIFIC-LANGUAGE TAGS WHENEVER APPLICABLE. 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 the program.
variables
53,967
questions
2
votes
2
answers
43
views
How do i use "my" to declare array and element in perl?
If I have an array, say @test and refer to items in the array as $test[0], etc. how should a my statement look? one of the following?
my (@test,$test); # array and element
my (@test); #just the array
...
0
votes
0
answers
31
views
Trying to list files in sub directory using CMake
I am trying to list files in subdirectory with a specific pattern using CMake...
function(ListFilesInSubmodule directory_path pattern)
if(DEFINED WIN32)
execute_process(COMMAND powershell -...
0
votes
0
answers
17
views
Assign variables to folders found in a while loop to allow for copy/movement between
For our child portfolios, we have two periods a year (Jan-Jun and Jul-Aug). At the end of this period, I am looking to file the Jan-Jun period into each child's "Prior Periods" folder. I ...
0
votes
2
answers
42
views
JavaScript variables being called in html tags (button)?
I am following this online free course on YouTube, this is the link if you want to visit it:
"Youtube link", but at around 2:15:00, he shows how to call javascript variables in HTML tags and ...
-4
votes
1
answer
51
views
Python - Extract data from text
I have lots of files in a database and with a command I can retrieve information from a file, but the problem is that I get this very abstract result, for example
[File({'added_on': 1720455648, '...
0
votes
1
answer
23
views
Understanding Error CS1579 foreach statement cannot operate on variables of type
Getting this error in my razor page app:
Severity Code Description Project File Line Suppression State
Error (active) CS1579 foreach statement cannot operate on variables of type '...
0
votes
0
answers
45
views
Too many Variables in Bat file?
I'm currently working on a batch file, but I noticed that the track/car cleaning and the extractions were not 100% working everytime. At the moment its not deleting nor extracting anything, and does ...
0
votes
1
answer
55
views
PowerShell Exporting Variables into Excel CSV file
I have created a Power Shell Script for Office 365 groups to export certain data we are looking for.
the part I'm stuck on is when I use Write-Host that creates a variable, this displays correctly, so ...
-3
votes
0
answers
35
views
undefined variable laravel 11 (can't run two methods)
My previous search method was running well after I implemented the method for calculations
**i got error undefined variable $formulas
C:\xampp\htdocs\MedusaDashboard\resources\views\superadmin\search....
0
votes
1
answer
45
views
What prevents JavaScript primitives from being mutated?
In C, after declaring and initializing a primitive, we're able to access the memory address where the primitive is stored and directly modify its value. However in JavaScript it is said that primitive ...
-1
votes
1
answer
21
views
Problems with os.rename | OSError: [WinError 123]
I'm looking to rename one of my files using os.rename, the code is a little bit messy but currently it gives me a result that looks like it should work, but I end up getting an error. (path is removed ...
-2
votes
0
answers
28
views
How to access Python variable with a format specifier? [duplicate]
Below code is printing all variable names, how can I print variable values instead?
a1 = 10
a2 = 20
a3 = 30
a4 = 40
a5 = 50
for i in range(5):
print(f"a{i}")
I want to access variable ...
0
votes
0
answers
46
views
Trying to declare an array in bash with a changing variable as part of the name, like $i in a for loop [duplicate]
I am not a geek of bash programming and I'm trying to write a bash script which is able to calculate the maximum common number that divides a set of given positive integers passed to the script as ...
-1
votes
1
answer
40
views
Variable used inside function reported not used
This works fine:
package main
var foo string
func main() {
fn := func() {
foo = "AAA"
}
fn()
}
But if we move the variable declaration inside main():
package main
...
0
votes
2
answers
37
views
I need to get these two lines in my variable into one single line. Power Automate variable
I need line 2 in the image to be combined with line 1. Below is what the full variable should look like.
CROWDSTRIKE FALCON EPP ENT FLEX BNDL T14.12M
I've tried wrapping the text and combining the ...