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

Is it possible to return multiple values from mysql function?

I have three tables and I want to sum all the result columns of each table and return these values from the function I define to do all the process. Is it possible to return those three float summation...

View Article


How to return an element to its original state with Javascript? [closed]

After Declaring a Javascript function on an Html Element which is to be invoked when an event takes place, i want to add another event listener which is event like onmouseout and then the html element...

View Article


Image may be NSFW.
Clik here to view.

Get the return value of a SQL Server stored procedure when called from...

I have the below sub, in VBA. It will run the stored procedure successfully, but I want to know if the stored procedure ran successfully by viewing the return value. I can't get the return value so far...

View Article

Call by value-result [duplicate]

void foo( int x, int y , int z) { int temp = z; z = y; y=x; x = temp;}void main { int k = 1; int j = 3; int t[5] = {1,3,2,3,1}; foo( t[k], t[j] k);}In the pseudocode above suppose we call x, y and z by...

View Article

Why does my array keep returning "Undefined array key"

I want to retrieve the api data from timezone api by clicking the submit button, for the first table row. Unfortunetly it is showing an error message whenever I visit the url link...

View Article


How can I see the value a function returned using CLion's debugger

I'm using CLion 2024.2 to debug a program. I know that, a couple of years back, JetBrains supposedly implemented the capability of showing function return values: CLion bug CPP-5130. I've even enabled...

View Article

Getting a return value of None when it works in all other situations in a...

# 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

How to get return value of Invoke-Expression in Powershell

So this is my code$result = Invoke-Command -Session $session -FilePath $ps1How do I get the result given by $ps1?The code of that function is supposed to give a true false result like in the...

View Article


Redirections changes "get-alias" command return code in powershell

I want test if an alias exists with the following code :if( (get-alias ls) ) { echo "=> Alias ls already exists."} else { echo "=> Alias ls does not exist."}When run, it says :CommandType Name...

View Article


How do I execute a command and get the output of the command within C++ using...

I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an example of...

View Article

window.opener.returnValue in Chrome with showModalDialog

I am trying to use window.opener.returnValue with showModalDialog. There are numerous references to a technique which can be used to workaround window.returnValue not working. However it just doesn’t...

View Article

Facebook Open Graph returns false

I am trying to access http://graph.facebook.com/{user_id}. It usually returns all the public information about users, i. e. first and last name, gender and locale. However, on some very rare occasions,...

View Article

save return value sinl function

My problem is that I don't understand what starts happening in the stack from line 27. <br(The code is compiled on godbolt.org) <br<br<brBelow I will give part of the code in assembler and...

View Article


Max value based on criteria among two joint tables in Access

I have two tables in access with different dates for one and the same order ID. In first one I have only one record per order with date. In the second one I have multiple records per order with...

View Article

When does assigning the return value result in a copy?

There are six lines in int main below where a variable is being created and initialized; in which (if any) of these scenarios does a copy get created for the assignment?Additionally, in the case of...

View Article


How to call an external program in python and retrieve the output and return...

How can I call an external program with a python script and retrieve the output and return code?

View Article

How to accomplish covariant return types when returning a shared_ptr?

using namespace boost;class A {};class B : public A {};class X { virtual shared_ptr<A> foo();};class Y : public X { virtual shared_ptr<B> foo();};The return types aren't covariant (nor are...

View Article


Not allowed to create a vector with type DICTIONARY"">The error message "function code != '67' => Not allowed to create a vector...

The error message "function code != '67' => Not allowed to create a vector with type DICTIONARY"I would like to ask why I am getting a "type dictionary" error when I return a table() in this...

View Article

C++ function returning by value can return rvalue reference?

I was reading up on rvalues and ran into something while trying a code snippet on compiler explorer. Here's a contrived example:class A{ public: A&& func(A& rhs) { //return rhs; return...

View Article

How to get the return value from a thread?

The function foo below returns a string 'foo'. How can I get the value 'foo' which is returned from the thread's target?from threading import Threaddef foo(bar): print('hello {}'.format(bar)) return...

View Article
Browsing all 206 articles
Browse latest View live


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