Questions tagged [parameter-passing]

parameter-passing is the process of assigning values to the parameters of a function

Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

SSRS - When I Select a New Parameter in a Linked Report, the Linked Report Reverts to the Original Parameter

Scenario: Column in main report is set up with the "link to report" action, taking the user to a details report and passing the selected value as a parameter. But once the user is at the ...
user12221499's user avatar
2 votes
1 answer
55 views

C# System.Commandline: How do I add an argument to a command so that I can pass a value to it?

The following simple Program.cs expects a single argument for a defined root command: using System.CommandLine; var inputArgument = new Argument<string>( name: "--input", ...
dan-kli's user avatar
  • 655
0 votes
0 answers
33 views

The object.assign() parameters

lady/gentleman, gm/gn, I need your help: const userDetails = { firstName: "Jane", lastName: "Daniels", userName: "jane.daniels", email: "[email protected]", comapny: "...
Angus's user avatar
  • 55
0 votes
0 answers
20 views

BIRT Parameter, filter a multivalue list box parameter from a textbox parameter

I'm trying to create a parameter windows with the first parameter [Text Box] as input for the second parameter [LIst box multivalues]. THe current situation I try scripting dataset of second parameter ...
Ciapini Cipiani's user avatar
0 votes
2 answers
116 views

Does it makes sense to take vector<string_view> as a parameter

I want a function that takes as input a vector of strings that I don't want to modify. So I thought about taking as input a vector<string_view>. However, if I do this, I can't pass a vector<...
poipoi's user avatar
  • 126
0 votes
1 answer
37 views

How to passing Value from another swift file to another file?

I want to create an audio player with a timer. The sequence of actions is as follows: The user selects a timer duration using a picker (TimerViews). When the user clicks "Start" on the ...
Amelia Citra's user avatar
-1 votes
0 answers
46 views

How do I use information from my main class to different GUI classes?

I'm making a Pokemon inspired game where GUI is implemented. Let's say I have captured creatures stored in my MainMenuGUI class. I need those captured creatures (which are stored into an ArrayList ...
numndz's user avatar
  • 1
-1 votes
1 answer
47 views

How to pass props or states to the children?

I have a server api call that requires user's ip address. for tracking the user, I am using a third party api. Now, the problem that i'm mainly facing is, the client side codes cannot be loaded on the ...
067_Fakhrul Islam Fuad's user avatar
0 votes
1 answer
46 views

Confused with passing lambda function as trailing parameter in Kotlin

Please explain why these errors happened. Thanks 1. fun calculate(a: Int, b: Int, operation: (Int, Int) -> Int): Int { return operation(a, b) } fun main() { val resultAdd1 = calculate(5, 3)...
Thành Nguyễn Chi's user avatar
1 vote
3 answers
64 views

itk c++ function parameter passing

I am trying the simple act of writing a function (encapsulation) that calculates an histogram from the input via the itk ImageToHistogramFilter. While this works fine I do not seem to be able to get ...
Ichwerdennauchsonst's user avatar
1 vote
1 answer
63 views

Polymorphism in Rust. AsRef vs Deref

I want to create a function that can take as an argument String, &str, Rc<String>, Arc<String>, etc. String is just an example, the parameter can be of any type. I can do this using ...
Levap's user avatar
  • 111
0 votes
2 answers
44 views

React Native Data Passing on Press TouchableOpacity

I create two TouchableOpacity in React Native. Code: const App = () => { const notification = [ { id: 1, name: 'David Silbia', message: 'Invite Jo Malone London’s Mother’s', time: 'Just ...
MST intern 2's user avatar
0 votes
1 answer
51 views

How to use purrr::map and aov functions inside a function and pass the function arguments into the aov?

I'm trying to create a function to generalize this working line: aov_res <- map(my_data[metals_list], ~tryCatch(aov(. ~ my_x * my_z, data = my_data), error = function(e) NULL)) with df is a ...
Maya Eldar's user avatar
0 votes
1 answer
22 views

owlready2: create FunctionalProperty to multiple classes

I need a FunctionalProperty to classes like this in Python using owlready2: class student(Thing): pass class teacher(Thing): pass and so on, I have six of them. I found a ...
Tamas's user avatar
  • 3
0 votes
1 answer
50 views

React navigate issue on passing params

I am new to react. I am trying to pass the parameters to another component using navigate.page is redirected successfully but I am facing error while reading param values. App.js: <Router> &...
KVK's user avatar
  • 1,269
0 votes
0 answers
10 views

Mapped props not displaying on storybook

I have a project that shows a table (BidTypesList.jsx), each row in the table has its own data (BidType.jsx). The table row is one component, which I should be able to reuse in the BidTypesList.jsx ...
Jo Murray's user avatar
-1 votes
2 answers
42 views

python3 arparse error regarding argument being missing

here is a code that takes one positional argument and tow optional arguments #!/usr/bin/env python3 import argparse from typing import NamedTuple, Dict, List import csv class Args(NamedTuple): ...
Younes Abuelayyan's user avatar
0 votes
1 answer
210 views

C++ how to pass N many arguments to a function at runtime

EDIT: The function is passed as argument and I can NOT change it. QUESTION: How can I use std::apply() in the scenario described below. I get FUNC f, and int D as arguments and have to provide ...
Alex's user avatar
  • 358
0 votes
0 answers
8 views

Navigation action using date parameters in Quicksight

I have a chat bar with year in X and Month in group like: enter image description here When I click on the month bar, I have a navigation action passing the Month and Year to another worksheet where I ...
Marcelo de Carvalho Pereira's user avatar
0 votes
1 answer
55 views

Pass Data From One Razor Page to Another Razor Page

I need some assistance please. I have not done this before and I'm not entirely sure what to add where. Basically, I am working on an app to house historical data. There is no create, edit or delete ...
MelB's user avatar
  • 159
1 vote
1 answer
38 views

Create bloc instance for named route + pass arguments

My app uses FlutterBloc for state management. My use case: list of items loaded from rest webservice on each item tap I need to load item details and display them on new page. My code to show ...
user1209216's user avatar
  • 7,564
-3 votes
1 answer
47 views

Passing on an out parameter [duplicate]

Is there a way to pass on an out parameter? I want the out parameter to not be set in the function itself, but to be set in a function I call. I'm unsure if I just got the syntax wrong. Here is what I ...
Daniel Bauer's user avatar
-1 votes
0 answers
38 views

R: passing arguments to a function inside a function to create ggplot [duplicate]

I'm trying to create several different functions to be used in different combinations to create plots using ggplot2 package. So far, my code is working, and includes this design list: #a list of ...
Maya Eldar's user avatar
-2 votes
1 answer
96 views

Unable to get stat of existing directory in Ansible due to variable formatting issue

I'm trying to get the owner of the first directory passed to Ansible variable source_files. We do not have control over the content of Ansible variable source_files as it is constructed through some ...
Ashar's user avatar
  • 3,031
0 votes
1 answer
39 views

Pass List <String> parameter by value instead of by reference

I have a code like this val myFirstList = mutableListOf("Hello", "You can ", "edit, ", "run, ", "and share this code") for (i in 0..myFirstList.size-2)...
genespos's user avatar
  • 3,253
0 votes
2 answers
28 views

Adding events with parameters but need to remove them again

So in a form I am dynamically creating objects and passing extra values, this works using the code below. I cannot find a way of removing the click event that actually works. Anyone know how to ...
PKYNI's user avatar
  • 41
0 votes
1 answer
19 views

BigQuery how to pass shell commandline parameters to sql file

I am trying to pass a shell commandline parameter into a SQL file that I'm executing in BigQuery. I keep getting this error and can't figure out how to resolve it: Unexpected macro at [1:14] Here is ...
Joe's user avatar
  • 125
-1 votes
0 answers
34 views

is it possible to pass arguments to a function that is event triggered? in Python

import tkinter from tkinter import * def foo(event, status): //do something based of the value of status class app: root =tkinter.Tk() root.geometry(something) cmb= Combobox(root, values=...
Perseus's user avatar
0 votes
1 answer
19 views

passing data or parameters from embedded file to main page in flutter

To be able to easily explain what I need, I prepared the following image. Shortly, I have a homepage.dart page and I embedded a map1.dart page into it. when user taps on the map, it creates a small ...
emsiloader's user avatar
2 votes
1 answer
58 views

passing an argument through assert(loadfile(play.lua))(argument) doesnt assign anything to arg[1] inside play.lua

I have a script play.lua that uses a filename as an argument in order to play the notes written on each line of the file. Im trying to write a script jukebox.lua that will run play.lua with various ...
Luc Riffault's user avatar
0 votes
3 answers
98 views

C# - Correct way to pass parameters to avoid GC stutters? [closed]

(I found some related questions, but they were not exactly same or a decade old.) So, are parameters in C# passed as value or references. say I do, static void main() { string name = "hello ...
Priyansh Yadav's user avatar
-1 votes
2 answers
74 views

Access data from global scope from inside function scope [duplicate]

I want to get random number and passing it between functions. I tried to tag $randId in user_edit.php?session= but when I tag the same variable $randId into user_add.php?session=, I cannot get the ...
apex anchor's user avatar
0 votes
1 answer
141 views

Jenkins pipeline how to run build job with parameters from variables

In jenkins pipeline I want to run "build job" using variables job_path and job_params. job_path = "long/path/to/different/jobs" job_params = [string(name: 'app_one', value: '4.8.6')...
Pawel's user avatar
  • 23
0 votes
1 answer
16 views

How to pass a parameter to a csv file that is contains javascripts and also parameterised in my jmeter script

i have a en-coded format javascript in a csv file that is used by jmeter to run my WEB PAGE TEST. how can i send a parameters to that csv file that is already serves as parameter for my jmeter
prabhu s's user avatar
-1 votes
0 answers
10 views

Pasar un parameto e imprimirlo en un template

views.py: The problem is when I go to ErrorPrestamo, due to i can send the parameters to that view. class RegistrarPrestamoGetOrCreate(FormView): template_name = "lector/...
Andres Daza's user avatar
2 votes
4 answers
58 views

Calling same function by different objects by pressing different key in python

I have created two turtles say 'tur1' and 'tur2' in python using turtle module. I have created event listener on the screen. I have created a function 'move_fwd(turte_name)' which moves the turtle ...
Akash Singh's user avatar
0 votes
0 answers
19 views

How can we use current value of dropdown menu as input parameter of shortcode?

The current value of dropdown menu is 'catname' and i have a shortcode that get id or name of category and return all of posts related belong that category. Now i want pass catname to shortcode eg:[...
Fardin Sadeghi's user avatar
0 votes
2 answers
92 views

How to send a model (a List with more than 3000 records) from a view to another get action in ASP.Net Core?

I have an ASP.net Core project. I want to send entire of a model that is a list of products, from a view, through "a" tag, to another get action in controller. I used TempData but it dis not ...
NedaM's user avatar
  • 91
0 votes
1 answer
45 views

Javascript function passed as parameter not executing

I have an App.jsx, declaring a constant and setState routine. I put the setState in a function (update_word_list). I pass the function down to a sub-component. A console.log prints the typeof ...
John Joyce's user avatar
0 votes
0 answers
12 views

How to use dictionary key value pairs as inputs into pyspark function?

I want to define a set of arguments for a pyspark function I've written that requires the parameters listed below. Many of the parameters are consistent excluding id and date. For each animal_id, I ...
SunflowerParty's user avatar
1 vote
1 answer
34 views

How to pass static matrix in a function with poiners in C?

I need to optimize by memory program, so I decided to use pointers with static matrix, but i I don't know much about pointers in C, and the program doesn't work(in VS program throws exceptions) #...
Roman Ambrosevich's user avatar
-1 votes
1 answer
37 views

how to use an argument passed from the main class to another class within another function?

I try to make a game of blackjack and I ran into an issue with the functions. I want to pass arguments of money and bet, check the winner and calculate the new sum of money and then pass it to another ...
Moby772's user avatar
  • 19
3 votes
1 answer
52 views

Empty parameters in SvelteKit load function

I'm trying to build a art portfolio in SvelteKit, following the SvelteKit tutorial. I have a page called art/, which has a subdirectory called [collections]/ for various different collections of art ...
ShashComandur's user avatar
0 votes
0 answers
62 views

C error free(): double free detected in tcache 2 in an array manipulation

What have to do My function is given an array of n numbers and should create and return a new array whose content depends on the parameter k: if k>0 the new array must contain every number of a ...
notCyberV's user avatar
0 votes
0 answers
38 views

How to set predefined options for a function parameter in PHP? [duplicate]

I'm wondering if it's possible to set predefined options for a function parameter in PHP8. I've only been abled to find setting a default option but that's not what I'm looking for. One simple use-...
robinb96's user avatar
2 votes
0 answers
35 views

Powershell script defining its own ValidateSet parameter [duplicate]

Setup: I have folder containing some folders, for the sake of argument, let's say they are named MCD1.4, MCD4.2, MCD1.3rc, tmp and personal. Goal: I want to create a powershell script, say process.ps1,...
5xum's user avatar
  • 5,332
0 votes
1 answer
40 views

R: can I create an object with meaningless parameter and then use it inside a function that, using its input arguments, will give it meaning?

Is it possible to create a list containing meaningless parameter, like fill.var in the list design <- list( geom_boxplot(aes(fill=fill.var), na.rm=TRUE), theme(plot.title = element_text(size = 20, ...
Maya Eldar's user avatar
1 vote
2 answers
115 views

Unable to set duplicateFileMode property in application.yaml for liquibase

I have a Java project with Liquibase library as database migration tool. When running migrations I'm facing the issue: "Found 2 files with the path 'db/changelog/db.changelog-master.yaml'" ...
Roman Sobo's user avatar
0 votes
0 answers
18 views

What would be the parameter value for embedding a SSRS report in SharePoint Site page using iFrame tag?

I'm trying to embed a SSRS report in SharePoint Site page using iFrame tag. The report conatins parameter and I would like to pass it in the URL. However, I'm struggling with what value I should pass ...
Sanjib's user avatar
  • 1
0 votes
1 answer
71 views

Python passing & concatenating global string values

I have 4 global variables: mdstring, rxstring, dnstring, vsstring I've verified the functions that set their values return strings (e.g. vsstring = "1|Vision|~Included with Medical.") I have ...
J Web's user avatar
  • 25

1
2 3 4 5
162