parameter-passing is the process of assigning values to the parameters of a function
0
votes
0answers
7 views
Passing Params to Wufoo iframe
Ok so there are tons of examples on how to pass custom parameters hidden fields in Wufoo forms (in my case the current URL of the form). The problem is these all deal with the javascript embed code. ...
-1
votes
1answer
23 views
Passing parameters through events
I have multiple classes in multiple projects, these classes have access to each other through a mediator class.
Whats happening at the moment is that Class A, fires and event, it is handled by a ...
0
votes
2answers
20 views
What is pass-reference-by-value?
I came across this yesterday and was wondering what the relationship of pass-by-value, pass-by-reference and pass-reference-by-value is. How do they all behave? Which programming language uses which?
...
0
votes
1answer
32 views
Pass a custom _form text field parameter to a second page Rails
I need to pass parameters from a form with values not in the database (so the form will have parameters only to be used by that page and never again). Upon the submitting of the form, I want to pass ...
19
votes
3answers
268 views
How are C++11 lambdas represented and passed?
Passing a lambda is really easy in c++11:
func( []( int arg ) {
// code
} ) ;
But I'm wondering, what is the cost of passing a lambda to a function like this? What if func passes the lambda to ...
0
votes
1answer
30 views
Passing arguments from one controller to another in ruby on rails
I want to pass an argument from one controller to another in rails.
This is first controller:
def create
@grouptorepo = Grouptorepo.new(params[:grouptorepo])
if @grouptorepo.save
fileUpdate
...
2
votes
1answer
16 views
Change textbox depending on boolean parameter choice in SSRS
I have a report that holds two tables, one is for a Detail report and the other a Summary report. I've set it where if the Summary paramater (a boolean) is set to true then you only see the Summary ...
0
votes
3answers
35 views
Issue using .sql command in resource file
Im trying to store my sql statement in .sql files in a resource folder,
I need to pass in 2 values to the sql command but im having difficulty doing this
my sql is as follows:
SELECT * FROM ...
0
votes
1answer
27 views
Understanding the parameter passing issue in programming languages
I am trying to find out exactly what are the parameter passing methods. What they do, what are their differences... I have the following subprogram:
subprogram p(x)
a[1] = 6;
element = 2;
x ...
0
votes
2answers
55 views
Paramater passing with text in C++
O have an assignment in which I must create a function to prompt a user for a filename and pass the input back to main. I must pass it as a parameter (I'm assuming this means pass-by-reference.) I am ...
0
votes
2answers
54 views
passing a parameter between two QWidget forms in QT
I'm new to QT and i'm trying to pass a parameter between two forms but i'm not able to do that ..could anybody help me please by giving me a simple example of passing a string constant "parameter" ...
0
votes
2answers
51 views
Passing pointer from c to asm and add value to sse register
I want to pass the pointer to an array between C and ASM code. I've got an array of four double values and i need to pass them to asm, load them to xmm, multiply and return the pointer to four values ...
-1
votes
3answers
32 views
Reference string parameter causes Segmentation fault?
Using GCC Compiler on Code::Blocks, I get an error:
Segmentation fault (core dumped)
Process returned 139 (0x8B)
...
After entering the input asked.
Here's my test program:
#include ...
0
votes
1answer
12 views
ImpactJS - variable values valid until passed to class constructor then become NaN
Sorry for the long post, but i wanted to be as detailed as possible
So i'm creating a plugin with a couple custom ig.Class instances. one is a Vector implementation: Vec2 then i have a particle ...
1
vote
1answer
40 views
How to send data between views having a ViewScoped bean
Background:
I have a ViewScoped bean with a field named someId
I have a page, somePage.xhtml with an inputText and a commandLink
The value of the inputText has a corresponding field in the bean ...
0
votes
0answers
11 views
how to pass model list as a parameter to stored procedure in asp.net mvc 4
I am working on asp.net mvc 4 application.
I need to pass model which in turn contains two lists list1 (list of model) and list 2 (list of another model) to sql server 2012 stored procedure.
please ...
1
vote
1answer
60 views
Dapper with Oracle passing in DbParameter
I'm trying out Dapper with Oracle and I was trying to run a multi-resultset query but Oracle requires a dbtype of refcursor.
StringBuilder query = new StringBuilder("BEGIN ");
query.Append("OPEN :rs1 ...
2
votes
1answer
77 views
Pass array by reference from Delphi 7 to C++ Dll
Here is the C++ function exposed through the DLL:
double my_exposed_cpp_function(int* my_array){
int i = my_array[2]; /* i should be 3 */
my_array[2]++;
return 0;
}
Here is the declaration of my ...
0
votes
2answers
28 views
C# Pass to function a Child List as a Base List
I have a base type B and multiple derived child types, C1:B, C2:B, C3:B, etc.
I have lists of each child type, ListL1, ListL2, ListL3.
I have working functions, F1, F2, F3, for each child type that ...
0
votes
2answers
68 views
c++ How to have a function parameter take different objects (but of same class) and access the functions of w/e object passed w/n function call?
I am trying to pass objects into functions, but which object to pass in will depend on user input. I'm not sure how to do this.
In int main(){
I've declared four objects all of a child class type:
...
-1
votes
0answers
16 views
Javascript :: Passing value to a reguler window
Let me explain the situation. I have a basic web application which is opened on window1. There is a search button on my page. This button opens another window which i call window2. When i click on it. ...
3
votes
4answers
61 views
Difference between int * array and int array[] in a function parameter
I have seen that the array values will change if the function parameter is "int arr[]" or "int * arr". Where is the difference?
int array[]:
void myFunction(int arr[], int size) {
for (int i ...
1
vote
3answers
65 views
In C++ How do references and pointers in parameters actually work? What are their set-in-stone protocol/“rule”?
Say you have
void foo(int a, int &b, int *c){...}
int main(){
int d=0, e=1, f=2;
foo(d, e, &f);
}
It is my understanding that the function declaration parameters must have the same ...
2
votes
4answers
54 views
passing arguments to the function
The output of the following ode segment is 9. I think the argument a of the function foo is passed by value. Is my assumption correct. If so, how the output become 9?
#include <stdio.h>
void ...
0
votes
2answers
34 views
Passing object to method laravel php bundles
Probably a noob question but here we go.
I'm using laravel and the messages bundle to send emails to verify users. But how do I get access to my $new_user object from within my send method?
// ...
0
votes
1answer
24 views
Cocos2d-x CCDirector -> pass around or call when needed?
I have a conceptual question about the use if CCDirector and other shared Cocos2d-x objects.
One common thing that is always done is:
CCSize s = CCDirector::sharedDirector()->getWinSize();
I ...
0
votes
2answers
28 views
How do I pass the Value from a Dropdown Form through a Link in Rails?
I have a dropdown select on my page called language, which is in a form with other elements. When the form is submitted normally (which submits everything), I can access the value of the dropdown with ...
-2
votes
3answers
47 views
How can I pass a string from a class to another class [duplicate]
How can I pass a string from a public class to TextView of other class in Java (android)?
ClassA.java:
hereButton updateButton = (Button)findViewById(R.id.updateButton);
...
0
votes
0answers
29 views
MyBatis and ParameterHandler plugin (using $ notation insteand of # )
I'd like to ask a question about the ParameterHandler plugin in MyBatis. There seems to be a dearth
of info on this subject. I hoping someone can help.
The only place I could find (on the entire ...
0
votes
3answers
49 views
Clever way for a method to accept any combination of unique objects as parameters?
I have a class that can be constructed with a String, Record, and Criteria. Is there any way to allow the method signature to accept these parameters in any order (other than creating multiple ...
0
votes
0answers
58 views
Passing textbox text as a stored procedure parameter for output in a gridview
I have two textboxes and two gridviews.
The textboxes are populated with coordinates from javascript variables which change according to which cell is clicked on in the first gridview. This works ok:
...
1
vote
1answer
18 views
Can you pass a fixed-size array as a GLSL function parameter?
In a GLSL shader, I want to create a function that looks a bit like this :
void MyFunction(out float results[9])
{
float value0 = 3.1546;
float value1 = 42; // whatever value
/* ...
0
votes
1answer
21 views
Storing parameter from JavaScript in Android
I have a JavascriptInterface and a setter/getter in my Android code:
mWebView.addJavascriptInterface(new AccessibleMethods(), "Android");
private class AccessibleMethods {
private boolean ...
-4
votes
4answers
74 views
Pass integer between classes in Java [duplicate]
So I have this class where I push a button, and at the and I get the int maxpluseen which I want to pass over to ClassB.
private void populateBtn() {
foto1 = (Button) ...
0
votes
0answers
20 views
parameter passing in mvc 2
I'm using MVC2, the asp file is
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NotificationsViewModel>" %>
<% using ...
0
votes
1answer
31 views
How to receive python's array in function
How do I receive an array (like numpy ones) into a function? Let's say the array a = [[2],[3]] and the function f. Tuples works like this:
def f((a ,b)):
print a * b
f((2,3))
But how is it ...
1
vote
1answer
71 views
C++11 Setter function parameter passing nullptr
I was wondering about C++11 best practices regarding parameter passing nullptr. I want to reset a class member object by passing a nullptr to an already existing setter function. For a simple ...
0
votes
1answer
36 views
Pass a Bitmap from Project to another
I have two projects linked to each other As it shown in this link. Let's say ProjectTwo Linked to ProjectOne.
I want to pass an image that ProjectOne owned .I create a static method to pass it:
...
1
vote
1answer
41 views
Parameter passing in R when interior function arguments are dependent on optional parameters
I'm working in R and need to pass arguments to a function so that they can be used as arguments when calling another function within the original. In the example below you can see that I'm interested ...
0
votes
2answers
68 views
How to pass a parameter in a lambda function in python?
I want to set colors of an object, and don't want to create 10 functions for every color.
So, I just want to declare the colors and create 10 buttons and one function. Error message is:
...
0
votes
0answers
63 views
Laravel: add URI's wildcard values to URI on redirect
There's probably a better or more common way of doing what I'm trying to do (maybe using the front-end), but here goes:
I have a page that when a user comes to it, it checks whether there is an $id ...
0
votes
1answer
221 views
Passing Multiple Values to a single Crystal Reports parameter from VB.net
I am using Visual Basic in Visual Studio 2012 with Crystal Reports for Visual Studio.
I have a parameter in a Crystal Report that can accept multiple values (for instance: Regions). How do I pass ...
0
votes
1answer
26 views
Internal frame pass variable back java
As a newbie, I struggle with this basic problem.
I have an internal frame that opens using a simple button on my main frame.
I would like to be able to get the value of one variable from my ...
3
votes
1answer
53 views
At what point do the Input Parameters of a WCF Workflow Service get instantiated/set?
I have a very simple XOML file with a single Code Activity inside the ReceiveActivity Handler.
The ReceiveActivity is mapped to an Interface called IRulesEngineService wih a single method on it.
...
2
votes
4answers
57 views
Passing a method as parameter
I'm trying to pass a method as parameter. How to do it?
I have this in mind:
public class MyButton extends JButton{
public MyButton(){
super();
}
public void setClick( method() );
{
...
0
votes
1answer
27 views
Passing parameters in link_to tag - rails 3 throwing error
In my Rails application, I have a link_to field with the parameters, but it is not going to the action specified. Is there anything wrong with the format of link_to given below.
<%=link_to "Add ...
0
votes
1answer
23 views
Parsing bash function parameters
I have a bash function, say foo ()
I pass some parameters in a string like user=user1 pass=pwd address=addr1 other=
Parameters may be missed or passed with random sequence
I need to assign ...
0
votes
1answer
14 views
ART - A Reporting Tool - Default values on queries
I'm using ART - A Reporting Tool - to build a simple, lightweight, BI prototype.
I have a portal-like structure using a dashboard query. When the user selects it, he is able to select which year and ...
1
vote
1answer
36 views
How to replace instances of a char by ints, then access an array with them
I'm trying to call this function on a string and pass in a 3d char array.
The function should replace all instances of 'u' in the word with '0', 'c' with '1,' etc...
Then I want it to reference the ...
1
vote
1answer
93 views
SSRS Drillthrough Report with one or more charts from Main Report
I am totally new to SSRS. I am not sure if my title explains what I want. I am creating few Dashboards for my Healthcare Database. Therefore I created a Patient summary report and a Patient details ...