Quantcast
Channel: Active questions tagged return-value - Stack Overflow
Browsing all 207 articles
Browse latest View live
↧

How to get the value of selected text in select combobox by javascript in...

How to get the value from selected text by select combobox?Here is the aspx.cs code for bind comboboxservice.BindHTMLDropdownList(cmb_labelno, "tbl_StockRunning", "StockTagNo", "StockId", "where...

View Article


Check if child exist in firebase database and return true or false [duplicate]

I want to create method that will check if a child is present or not in firebase database and returns the value true or false accordingly. here's my codepublic boolean...

View Article


how can i get a value from a selected element (option), i have over 20 select...

how can i select all the 'select element' from HTML, and get the value from the option selected.how can i retrieve value that's selected from the option,i want to iterate through the select elements...

View Article

Return type for *this in a builder-class method - lvalue vs rvalue refence

Suppose I have a "builder" class B which builds a class C, and looks somewhat like the following:class B {public: // ... B& set_foo(Foo a_foo) { foo_ = std::move(a_foo); return *this; } C build()...

View Article

Image may be NSFW.
Clik here to view.

How to create a list dynamically in Prolog?

I have looked at the gazillions of other similar questions, but I haven't found a working solution, so I am asking this:I have a rule:check_prime(X) :- X > 0, X0 is X - 1, (X =:= 1 -> true; X =:=...

View Article


How do I get the return value of a Powershell script that is run in Excel VBA?

I am using Excel VBA to run a simple Powershell script that, when run in Powershell itself, returns one or two file names of some files within a given directory. I can run this script from my VBA, but...

View Article

Returning result from one column if criteria are met in multi columns / rows

I have a spreadsheet where some equipment checks are done. There are 11 columns/checkpoints and one with the issue description. If the checkpoint is checked and there's no problem, then the operator...

View Article

Using variable from another file that needs "import" using a button click

In file 1, I have 2 buttons.from file2 import Candyclass MyInterface (QMainWindow, Ui_MainWindow): def __init__(self): super().__init__() self.setupUi(self) self.setWindowTitle("Candy")...

View Article


Options for returning multiple types from a method

I want a method to alter multiple variables outside of it, which, if I understand correctly wouldn't/couldn't change outside the scope of that function, unless specifying and returning a specific type....

View Article


Serialized Object to JsonResponse return empty response using serializer...

I use to add vue3 frontend content in a backend symfony 5,I need to return a jsonResponse for sorting values in the front,I did a Serializer Service to Serialize in Json an object which is from the...

View Article

Return value from specific javascript function in Playwright

I need to extract value that was created after running some script. My tests are written in Playwright.So, I have a javascript that return some id from locator on page. it looks...

View Article

Returning array from a Bash function

I am making a bash script and I have encountered a problem. So let's say I got thisfunction create_some_array(){ for i in 0 1 2 3 .. 10 do a[i]=$i done}create_some_arrayecho ${a[*]}Is there any way I...

View Article

Return one value from a report list, not sum or record count in Sheets

I am trying to use a formula to return one value from a list of record counts.Here is the example so you all know what I mean.What I am trying to do is return in one field the amount of sold software...

View Article


How to fix an AssertionError [closed]

To me actual and expected look same but i am getting an AssertionError showing that values are not equal.[Diff] Actual / Expectedundefined *John Doe *I am trying to return a function parameter with an...

View Article

How do I deal with default values in extern functions?

The basic function:void foo(int bar=99){};And in the #include'd routine:extern void foo(int);foo();This doesn't compile as it says 1 argument is required for foo(). If I make it:extern void...

View Article


How to return a string value from a Bash function

I'd like to return a string from a Bash function.I'll write the example in java to show what I'd like to do:public String getSomeString() { return "tadaa";}String variable = getSomeString();The example...

View Article

Store result of json request in a variable [duplicate]

I need to store a value of json response to use in another function.I have this code:const url_moodle = "https://xxxxx/xxxxx/app/appmoodlejson.php";var moodleEmail = function (email){ $.post(...

View Article


PowerShell functions that return true/false

I am pretty new with using PowerShell and was wondering if anyone would have any input on trying to get PowerShell functions to return values.I want to create some function that will return a value:...

View Article

Image may be NSFW.
Clik here to view.

how to send/get values from mainform label to Childform1 label and Childform2...

I'm Trying to send/get values from mainform label to Childform1 label and Childform2 label with VB.NETIf you see the gif (gif result code) in mainform then there appears ADMIN (LblUsername) and A...

View Article

Why am I getting a return value of None when I used return, but it works in...

# Sample Codeimport datetimesample = {"Eat": [ datetime.datetime(2024, 9, 13, 2, 0), datetime.datetime(2024, 9, 13, 3, 0),"2024-09-13 20:43:35.440898", ],"Sleep": [ datetime.datetime(2024, 9, 13, 4,...

View Article
Browsing all 207 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>