Questions tagged [parameters]

Parameters are a type of variable used in a subroutine to refer to the data provided as input to the subroutine.

0
votes
0answers
4 views

JavaFX parameter passed to new window is null

My problem is that the NOT NULL parameter which I passed to newly created window is NULL. I've read many posts about how to pass parameter to another window via setters and for me it seems like ...
-2
votes
2answers
40 views

In Java is it bad practice to pass Integer objects to void functions to simulate pass-by-reference? [duplicate]

I'm writing a function that preserves the image ratio of an image while resizing for a certain screen size. The function should return both the height and width of the optimal image, and then we use ...
0
votes
1answer
22 views

powershell export variable to txt file

I need to extract a variable on a single line in a txt file like so; Write-Host "Select RDS Collection to migrate" $AllCollections.Keys | Sort-Object | ForEach-Object { Write-Verbose "[$_] - $($...
0
votes
0answers
14 views

Variable parameters in invoke?(php)

I have to call a Bapi with SAP. (I use a sapnwrfc) In order to do this i have to use invoke to call these bapi , but I don't know the number of parameters. I can send 2 parameters , like I can send 55 ...
0
votes
2answers
32 views

Whats the correct way to use a date parameter in WHERE clause

Whats the correct way to use a parameter for WHERE WORKS_ORDER_HEADER.DATEREQ < TO_CHAR('DD/MM/YYYY', '&CUT_OFF_DATE') The data is presented in 16/06/1995 format So if the parameter is ...
-1
votes
0answers
15 views

I need some help to estimate parameters for coding distribution

The assignment for my hydrology class is about outputting result for frequency analysis. The decades long daily precipitation data was given and I extracted annual maximum daily precipitation. So now ...
0
votes
0answers
22 views

Cannot route to page using blazor route with parameter

I have an issue with routing in my blazor server side app. I have specified @page "/intent/{intentid:int}" in my razor view and I am using a link tag to navigate to it on the side bar ex: Test. the ...
0
votes
2answers
17 views

*args and other parameters in decorated function in python

I have the following script that works fine. The decorator on_or_off takes the value from on_switch from the function and execute if its value is True. import pandas as pd import ctypes import ...
0
votes
1answer
18 views

Calling several functions with different default parameters from a function modifying the default values

I have several functions with default parameters, which are called from a high-level function and I would like to be able to modify a certain number of those parameters from the other functions. Let's ...
0
votes
1answer
32 views

How to keep iterating parameter's value till “n” times?

If the parameter Data1 has value as below in HTTP request: ["111/BB/44444/E/123", "222/BB/44444/E/123", "333/BB/44444/E/123"] Now if we look at first value, its dynamic. If my value n count is 3 (...
0
votes
0answers
17 views

How to pass Click event handler as a parameter to another sub?

In VB.Net I’m writing a program but I don’t know how to pass Click event handler as a parameter to another sub and how to call it from there. Can I do that? If yes, how? E.g.: I have the following ...
1
vote
2answers
19 views

In an Object, saved in object repository, is it possible to change the “Selected Locator” so I could change it at run-time?

I'm just new to this application, and I am having a hard time looking for codes since I do not know the exact words/terms to search. So I created an object only having a value in the "Selected ...
0
votes
1answer
41 views

How to pass parameters to a function that is the argument of another function

I have an objective function f(x, d), where x is the a vector of two variables (x1, x2) and d is a Nx2 matrix of points,that is given. f(x) is a distance function calculating some compount distance ...
2
votes
0answers
23 views

Any way to return information about/from a Powershell File-Watcher that has been triggered?

Situation Summary Currently I have two separate Powershell(PS) Consoles, each with its own Filewatcher(FW), watching for a created file(txt file) from each Build. The code is nearly identical ...
0
votes
0answers
6 views

Tensorflow OD API - Explanation of Hyperparameters

I am currently working with the Tensorflow Object Detection API. The user has many possibilities how to combine different hyperparameter configurations. However, I am struggling a bit with the ...
1
vote
0answers
27 views

Typescript does not enforce function parameters [duplicate]

The snippet below does NOT throw a type an error: type Func = (args: { a: number, b: string }) => boolean let fn: Func = () => true Why is that? How can I enforce that every function of type ...
0
votes
2answers
25 views

How to convert a string parameter to an attribute of variable TypeScript Angular

I have these 2 methods : changeStartTime(event, id) { if (event.hour >= 10 && event.minute >= 10) { this.priceRules[id-1].startTime = event.hour+":"+event.minute; } ...
1
vote
1answer
28 views

Can not getting config params values in api controller Yii2

I am getting undefined parameter error while calling Yii::$app->params['status'] I have created api folder for web services and in this i have api/controllers/UsersController.php. I am calling ...
2
votes
1answer
21 views

Multiple onchange effects in a for loop passing parameter

I am trying to do a for-loop in javascript, in where I place an onChange function for every element in the loop/list. When the onChange triggers, the setValidation function should trigger with the ...
0
votes
1answer
26 views

Is it possible to use MySql assignment operator (:=) in a MySqlCommand?

I have a query that works fine in MySql workbench, but is producing a syntax error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right ...
1
vote
1answer
30 views

Flutter: Change the parameter passed to a “StatefulWidget”

I have a StatefulWidget named BounceContainer. This class contains a parameter child like a typical Flutter widget. Basically, it bounces the child whenever the user taps on it. The way I pass the ...
0
votes
1answer
20 views

Ajax custom parameter list

How it is possible to customize the parameter list in an ajax call. i.e. At times this: $.ajax({ url: TheURL, data: { par1:VAR_A, par2:VAR_B, par3:VAR_C} }); At other times this: $.ajax({ url: ...
0
votes
0answers
16 views

My code don't find the datagridview datasource after running another form at the same time

I'm setting a IT project for the school and i got a problem with the datagridview in c# Winform. I made a first form with a datagridview connected to my db and i want to make a button who can delete ...
0
votes
1answer
32 views

Is it possible to change parameter value in partial?

I want to find a clear and efficient way to be able to change parameter value set for functools.partial. Let's see a simple example: from functools import partial def fn(a,b,c,d,e): print(a,b,c,...
0
votes
1answer
65 views

C# error about missing “out” parameter, but the code works fine

I have a C# project that contains a method that looks something like this: bool TheMethod(Type arg, out Type output) And then it's called later on in the file, it looks something like this, with ...
0
votes
1answer
7 views

Why does the function `GenSA` not honor lower bounds for components?

Quoting the official documentation of the GenSA function from the GenSA package from CRAN: Usage GenSA(par, fn, lower, upper, control=list(), ...) Arguments par Vector. Initial ...
0
votes
0answers
22 views

How to pass multiple selections of string from a reporting tool to DB2 as a parameter?

I'm trying to run a report using Free-Form SQL in Microstrategy using stored procedures.This involves passing the prompt or selection answers from the reporting tool to the DB2 database using ...
0
votes
1answer
11 views

How do I build an SSRS expression for the NoRowsMessage that shows report parameter values?

How do I build an SSRS expression for the NoRowsMessage that shows report parameter values? something like: ="No locations were found for this street name : " + @StreetName I have also tried this: ...
0
votes
1answer
30 views

SSRS report returning error - The sort expression for the group 'grp' contains an error: Attempted to divide by zero

I am attempting to fix an error in a previous developers SSRS report. There is a group by parameter, when choosing a certain value it returns the error - The sort expression for the grouping 'grp' ...
0
votes
2answers
31 views

Is there a gcc compiler option that help capture formal and actual parameter type mismatch?

//file1.c #include <stdio.h> void p(int a) { printf("%d\n",a); } //file2.c extern void p(float x); // external declaration doesn't match definition int main(){ float b; b=3.333f; p(b); ...
0
votes
1answer
36 views

Is there a gcc compiler option to capture formal and actual parameter type mismatch? [duplicate]

I pass a float to a function expecting an int: #include <stdio.h> void p(int a){ printf("%d\n",a); } int main(){ float b; b=3.333f; p(b); } Is there a gcc compiler option which will ...
0
votes
1answer
30 views

How can I get access to the systemItem information of the sender parameter of the function prepare for segue?

By unwinding a segue I use the function prepare(for:sender:) to identify which button was pressed to run some code based on the outcome; the information should be available within the parameter sender ...
0
votes
1answer
29 views

Is there a way of manipulating a global variable you use as an argument for a function in lua?

I'm trying to write some code into a function so that it can be easily reused whereby a global value is increased. The issue is that there are several different globals that can be manipulated, and ...
1
vote
1answer
24 views

Passing additional iteration-dependent inputs to ode45

I'm trying to solve differential equation using the ode45 function. Consider the following code, [t1,X2] = ode45(@(t,x)fun(t,x,C1,C2,C3,C4),t0,X01); where parameters C1, C2, C3 and C4 are column ...
-3
votes
1answer
30 views

How to fix “Need more than 1 value to unpack” [duplicate]

I'm writing a program from "Learn Python the Hard Way - Third Edition" by Zed A. Shaw. I am new to programming and I am completely stuck on Exercise 12. Please look at my code and help me with what I ...
0
votes
1answer
30 views

Flutter: How to pass parameter to Future async function

I have to pass parameter to Future async function from floatingbutton My Codes like FloatingActionButton( onPressed: getImageFromCam, tooltip: 'Pick Image',...
0
votes
0answers
29 views

changing dynamic params in axios from data

in laravel i have dynamic url like this: api/product/all?page=2&per_page=15 page & per_page is dynamic and in future i'll add other property like price range,data &... i hace this mehod ...
-3
votes
0answers
38 views

How to optimize the spark configuration parameters using machine learning?

Use the running log records provided by spark by default to improve the efficiency of the cluster through machine learning. Optimize configuration parameters for cluster initialization through ...
0
votes
2answers
24 views

Angular 7: snapshot.params id comes undefined

Im working with this fake api 'jsonplaceholder' getting and sending data with one model: Users. My goal is to display a list of Users and on each click I navigate to other component where I can see it'...
0
votes
1answer
21 views

memory Error while training word2vec: hierarchical softmax

I am training word embeddings with word2vec and with some Parameter configurations I Always get a Memory error. I do this for the whole english Wikipedia and using PathLineSentence for the Input (more ...
0
votes
0answers
20 views

PHP MYSQL when user logs in, insert the password as a variable to a different database?

I want users that have access to my website to be able to use their login credentials on my new website without them having to do anything such as register again, so what I'm doing is that whenever ...
-1
votes
0answers
31 views

Model state validation error when content type parameter is []

When I send a JSON to WebApi controller I have this error from Model Validation: Cannot populate list type System.Net.TrackingStringDictionary. Path 'Attachments[0].Item3.Parameters', line 1, ...
0
votes
1answer
31 views

Accessing axios body parameter outside the URL

I have this axios request: axios.all([ axios.post(baseURL+'sentiments', { sentiment_type: 'positive', filter_tab: type }), axios.post(baseURL+'sentiments', { ...
0
votes
0answers
31 views

How to pass HTTP request parameters containing space and filter for ^word$

I am making a REST API call, by passing param with space and filtering for specific a word with regex ^word$. import requests url ='http://xxxx/api/' headers = {'content-type': 'application/json'} ...
4
votes
1answer
53 views

How to pass a function with arguments to another function

I'm trying to make a generic autocomplete function (which actually takes several parameters, and has a bunch of shared logic), so that I can easily and neatly maintain a long list of similar commands, ...
1
vote
0answers
23 views

Add parameters to URL using select

I know next to 0 when it comes to code, but it is an area I like more and more. Here is the deal, Im trying to make a search form that searches an external website. I'm using dropdowns and the url ...
0
votes
1answer
40 views

Can I use parameters in a Google Assistant Simple Response?

I'm making an agent which plays some audio and asks after that what player 1 pushed up in the time the audio played. I'm doing this in the simple response of Google Assistant in Dialogflow. The audio ...
0
votes
2answers
39 views

SQL Server procedure throwing a parameter error even though I entered a value

I am doing a procedure that accepts an input parameter of a filepath, reads the json data from it and inserts the data into a table. However, when I try to execute the procedure, I get this error: ...
0
votes
1answer
12 views

SQL Procedure filepath as parameter

I have the following procedure that reads json data from a file and stores it in a table. Now, I need to change it so that the filepath is a parameter. I tried, though with no luck. Thanks CREATE ...
0
votes
1answer
32 views

How to add year parameter to SQL query?

I'm creating a report to compare sales of two years using crystal reports.I need to add Year parameter to filter the data by entering to years to CurrentYear Parameter and PreviousYear Parameter.How ...

http://mssss.yulina-kosm.ru