Parameter-passing Questions
Ad
Python function as argument
I have a problem with pass other function as parametr to another. i have function marks_as_done and delete_task in separate file
passing mixed keyword non keyword arguments programmatically to a bound method in Python
I have an object. class myclass: def f1(self,arg1,param1,dictionary_settings={}): # stuff def
How to pass data to stateless widget calling from another stateless widget?
I am trying to pass some color info from one widget to another but i am not able to get that color in destination widget. i wanted to build a
How to print first n line from the argument passed file with arg parser library
How to print n line from the argument passed as file with arg parser library. i have a file with 100 lines. i want to print the first n
Parameterized Bigquery and Array of string values
I am running a nodejs program that runs a parameterized select query. i have the following params that i am passing to the query
How access parameter passed to HTML page with JavaScript
I am passing parameter to html page with nodejs router using: res.render('dashboard', {ph_user: fname}); i can
Passing a variable to another class from the state of another class
I am trying to pass the parameter username which has been received from another class to my homepage class. i want to pass that parameter from the
Is there a way to memoize a function passed from params - (useCallback) exhaustive-deps
So i have this little snippet: const usetest = (callbackfunc) => { const user = useselector(selector.getuser); // a value
Function parameter - id vs object
I have some service that return user's data by it's id. user already stored in request(session) - no need to fetch it every time. the
How do I reference to a List<> object that was created in a class?
I have 2 separate files in my flutter application, main.dart and class1.dart class1.dart is defined in my models/ folder i am trying
Ad
Pass multiple args to a method with varargs of Object type
In java, i am trying to use a method from a library which accepts varargs of object type: static result process(object head,
Parameters are not going to custom estimator in scikit-learn GridSearchCV
I'm trying and failing to pass parameters to a custom estimator in scikit learn. i'd like the parameter lr to change during the
I am not getting how the structure is being passed to a function in following code using call by reference?
Like in this code, what i don't understand is how 'n1' [ increment(n1) ] is being passed to 'number&
Passing data from parent to child StatefulWidget Flutter
Hellow, im newbie in flutter..please help me to pass data from parent to child statefullwidget.. then..send to api.. this is my code
How to pass an integer through an instance method and add that with an instance variable?
I was trying to add the parameter bonus (which will take an integer) with the instance variable self.pay and wanted to
Passing external parameter keeping implicit parameter
I'm coding a python plugin for qgis 3. basically i'm trying to get a feature when the user click on it.
How can I pass parameter when trigger?
When my javascript is run it will call the getdoctorcomplete function. when the ajax request is completed, it will set a =
Create a Diffie Hellman Object from hex encoded p and g parameters
Om my application i receive the diffie
Flutter/Dart: The argument type 'bool Function(MyStateNotifier)' can't be assigned to the parameter type 'dynamic Function(dynamic)'
I have a such class declaration in dart, but when using it the compiler reports error
Best Practise? Pass parameter between activities
The best way to pass parameter between activites is to use the putextra() method. passing an object is possible by putparcelable(). but not all
Flutter/Dart: Text in Widget changes based on which Screen called it?
I've got a stateful widget that records audio. it's used on two different screens. i'd like the text on its button to be based upon the screen
Ad
Laravel-like routing pattern in Flutter
I'm looking for a routing in flutter similar to laravel/lumen that follows this pattern: project/{project} where
Python - Passing variable filename in pyqt between functions
I made a destop application with one button (button_on_click_getfile) you can select a file. with the other button(button_on_click_work) you are
Flutter pass variable to FloatingActionButton
I have an app where i have a bluetooth connection to a colorimeter. i have a button to make a measurement, but somehow i am not able to
Callback function issue in flutter
I have two callback functions in a stateful widget which are called by two different screens. here is the how i declared them in the stateful
How can I pass a value from Node Js to php then return back?
I have a php file and node api. the php file in server which return the random number by user given max value. the user given maximun value is
Flutter Dart - dynamically get a property of a class
I would like to get the property of a class by passing a string name. how can i do that? class a { string fname ='hello'; }
Laravel pass list parameters (columns) in select query
I use three table spareparts, categories and parameter and yajradatatables. my
Laravel - passing parameters from web.php routes to controller
I am trying to pass a parameter to my usercontroller but i can't seem to find a method to do this. all other topics give examples where the
Passing a model instance to another model's function
So here is a piece of code i have right now that is working and inside one of my controllers:
How to pass a variable between web pages when using Reactjs Router Switch to navigate
I am working on a web application that can load one of several scenarios based on a selection that a user makes. a webpage has already
How passing widget dynamically in class constructor parameter
This is my first question in stackoverflow. i'm trying to call a widget in another statefulwidget when we passing it as class constuctor
Ad
Why I can pass a number to function which accepts const reference? (C++)
I'm new to c++, while i'm learning pass by reference i realized that i can't create a reference to a number directly, it has to be a variable. but
Passing multiple value to single variable as function parameter
I want to pass multiple values as a parameter to a single variable in js. how can i access these value from this variable as the parameter?
Querying the database with a variable passed as an argument in SQLite android
I am creating an app where the user can search database with inputs provided by user through edittext boxes.i am passing them to the database file
Problem with parameter passing with arrays
This is a homework for my c programming class. the program calculates employee gross pay, tax pay, and net take home pay. the program runs
C Syntax :: Function passed as parameter, where does function get its arguments?
I’m reading through the c code for ndpi, a network packet inspection program.
Is the illustration on Aliasing in C correct?
I saw the link
Execute a C program from within another C program as if it was a function call (in Windows)?
Is it possible call a separate c program (.exe file) within a c program, like if it was a function? i would like to be able to pass
Why a function with no arguments works, but a function with void as argument doesn't?
In the below codes i am calculating pi with a function external to main(). the only difference between the two is:
C assignment from incompatible pointer type error
I am getting incompatible type error at line 14 when passing the pointer of the integer to another function. can anybody explain me why and how to
How to declare and pass a structure during function invocation?
It is very common to declare and pass a basic data-type variable during a function invocation, can we achieve something similar with the
Which way is better to pass arrays as function arguments in C?
There are 3 ways to pass arrays as function arguments. formal parameters as a pointer, e.g., void
Ad
How the parameter of this 2 type of pointer is different?
In this post (why the
Why the result of this code is the same when the arg is different?
Feel free to make this post as a duplicate if there's already an answer for it because i haven't found the answer. here's the
C - Assembly error: cannot convert to a pointer type
I am making some things with c and assembly , but when i call iesimo in main , i obtain the following error: #include
Azure Data Factory Pass "Object api name" of Salesforce Tables as Parameter from ForEach
I trying to load some tables from salesforce, the number of tables can change from time to time. we created a csv file on a blob
How can I describe the difference between these two value passing styles?
This is what i understand to be pass by reference in c (note: i am not a c programmer): void
Is there a way to pass a pointer to a variable without defining it prior based on function prototype requiring a pointer as one if its parameters?
I was having issues with recv() where i would always get a return of -1, despite there being bytes to read. my problem was that i was
Want to pass JavaScript variable from one php template to another
I am having some problems with passing one js variable to another. i am using hubspot forms and their event onformsubmit
In C why do I NOT need to specify 2D array size when passing into function when the 2D array is created with malloc?
I'm pretty new with c and just confused with what's really happening when i'm passing 2d arrays allocated in heap memory
How to pass text box value as argument in jquery function on click event
I want to get a value of text box on click as parameter <input type="text" id="remark_mention" />
Typescript Passing prop as one of the objects's keys - values
I am using react native and trying to pass one of string values to another component. the type object looks like this:
How to get route parameter on difference function on laravel?
I have a problem in my project laravel, i want to get route parameter 'id_project' on route 'project' to use in route
Ad
How do I pass random data between stateful widgets?
I am having two stateful classes - firstclass and secondclass. in firstclass i have two buttons; '+' and '-', which will receive random numbers
Does Java pass references or values or both? Is my explanation correct?
I had a discussion with someone that java is pass-by-value exclusively or not. the following code made me think about it: public
Create a list os Kotlin with de result of a repeated function
I have a very long method that creates a list with the result of a function that adds two numbers: private fun add(one: int,
why order of parameter remain same even arguments are passed as named arguments? in javascript
For example in python: def dfde(name,age): print(age) print(name) print(age) dfde(age=27,name="dfd")
sweetalert delete confirm laravel
I have a problem in laravel for confirming the post delete by sweetalert <script>
Angular Typescript send optional restful url params only if they are not empty
Current system that i have control of is only the front end which is angular 5 ( thus typescript) . backend should not matter, but there is a
Is it okay to pass null/empty unused parameters to a method?
I'm trying to find what is the best practice to do in a similar case, say i have a method string getcontent(string id, boolean
Future Function passed as parameter not executing Flutter
I am trying to create a widget from a custom widget, so when i pass the parameters to the function that creates the widget i need to set the
Pass clicked item as route parameter to sub component in Angular
I have two angular components called list and list-detail. i also have two models for the list
modern javascript rest function giving n number of outputs for n number of arguments passed
I'm trying to take in multiple episode ids as arguments and display the info of that episode from json data. i've pushed all the episode info
Pass variable to void function in flutter
I want to pass parameter from my dialouge box(void function) to another void function but getting error can't be assigned
Ad
When attempting to pass an int to determine array size in an array wrapped in an object, code does not execute depending on int size?
This is my third java course and we're reviewing sorting algorithms. i am using eclipse to compile and run my code. i have an array wrapped in a
what does "this" keyword mean in a class that is implementing Interface (java)? how come it is sent as interface?
Here in this class there are two this keyword one is used as context another one is used as interface how these two are understandable
Why this code doesn't work?
I get a segmentation here. however if i declare array as int** and use malloc, it works fine. #include <stdio.h> void
Cannot pass random enum value to function in Java
Cheers, i am pretty new to java and i and i have ran across a problem i have three classes, all inheriting things between them. starting i have a
How can I create a function which treats a passed parameter as a literal?
I am sure that this has been asked and answered before, but i can't seem to find the right terminology to find an answer. i need to dynamically
passing parameter for event listener
window.addeventlistener('keydown',function keydown_f(e){ if(e.code === 'arrowdown') {
How do you pass/bind a value through a RaisedButton in Flutter?
I have a listview of raisedbuttons, where each raisedbutton looks like this. the name variable is different for each
how to get data from setOnClickListener and pass it to CountdownTimer
How can i get the computations i did on my onclick and use that data as a parameter for my countdowntimer? i made a simple conversion of inputs to
How do Python methods handle arbitrary parameters?
I will use the range function as the main example in this question. i use range a lot to generate a list of
Pass a React component as a param to another React component
I'm looking for a way to pass a react as param to other react and access it: i've tried something like: reactdom.render(
How do I properly pass an argument to a function
I'm from a c++ background so this problem seems a little absurd to me: let's suppose i have a function: def scale(data, factor):
Ad
Javascript modal window routine executes more time with each click
So i have a modal dialog window which you are able to pass functions into. function dialog(message, yescallback, nocallback) {
Passing parameters while Linking to another html page in google apps script
First, this is a google-app-script issue... i can't seem to capture the second (or subsequent) parameters within the
Javascript: argument unpacking in function.prototype.bind()?
The closest i've seen is this, but it doesn't really
Ad
Blog Categories
Ad