Top "Return-value" questions

Return value is the result of evaluation of a return statement.

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 …

string bash function return-value
How do I return multiple values from a function in C?

If I have a function that produces a result int and a result string, how do I return them both …

c return-value
How to assign from a function which returns more than one value?

Still trying to get into the R logic... what is the "best" way to unpack (on LHS) the results from …

r return-value variable-assignment assign multiple-results
Calling stored procedure with return value

I am trying to call a stored procedure from my C# windows application. The stored procedure is running on a …

c# sql-server stored-procedures ado.net return-value
Jquery function return value

I've created a function to iterate through a UL/LI. This works perfectly, my problem is returning the value to …

javascript jquery return-value
Return multiple values from a function, sub or type?

So I was wondering, how can I return multiple values from a function, sub or type in VBA? I've got …

function vba return-value ms-word
Android ACTION_IMAGE_CAPTURE Intent

We are trying to use the native camera app to let the user take a new picture. It works just …

android android-intent camera return-value android-camera-intent
Efficient way to return a std::vector in c++

How much data is copied, when returning a std::vector in a function and how big an optimization will it …

c++ return-value stdvector
Best way to return a value from a python script

I wrote a script in python that takes a few files, runs a few tests and counts the number of …

python return return-value
JOptionPane Yes or No window

I am trying to create a message with a Yes or No button. Then a window will appear with a …

java swing return-value joptionpane