Top "Parameter-passing" questions

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

PHP Function with Optional Parameters

I've written a PHP function that can accepts 10 parameters, but only 2 are required. Sometimes, I want to define the eighth …

php function parameter-passing
Java variable number or arguments for a method

Is it possible to declare a method that will allow a variable number of parameters ? What is the symbolism used …

java methods arguments parameter-passing variadic-functions
Passing an array as an argument to a function in C

I wrote a function containing array as argument, and call it by passing value of array as follows. void arraytest(…

c arrays function parameters parameter-passing
Why use the params keyword?

I know this is a basic question, but I couldn't find an answer. Why use it? if you write a …

c# parameter-passing params variadic-functions variadic
Invoke a second script with arguments from a script

I have a script that reads a configuration file that results in a set of name value pairs that I …

powershell parameter-passing command-line-arguments invoke-command start-job
Passing Parameters JavaFX FXML

How can I pass parameters to a secondary window in javafx? Is there a way to communicate with the corresponding …

javafx parameters dependency-injection parameter-passing fxml
How can I pass selected row to commandLink inside dataTable or ui:repeat?

I'm using Primefaces in a JSF 2 application. I have a <p:dataTable>, and instead of selecting rows, I …

jsf jsf-2 datatable parameter-passing commandlink
Passing variables, creating instances, self, The mechanics and usage of classes: need explanation

I just rewrote a working program into functions in a class and everything messed up. First, in the __init__ section …

python class call parameter-passing instance-variables
Pass parameter to EventHandler

I have the following EventHandler to which I added a parameter MusicNote music: public void PlayMusicEvent(object sender, EventArgs e,…

c# event-handling parameter-passing
Django return redirect() with parameters

In my view function I want to call another view and pass data to it : return redirect('some-view-name', backend, form.…

python django redirect parameter-passing