Top "Return-value" questions

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

How can I return a variable from a $.getJSON function

I want to return StudentId to use elsewhere outside of the scope of the $.getJSON() j.getJSON(url, data, function(…

javascript jquery ajax scope return-value
AsyncTask: where does the return value of doInBackground() go?

When calling AsyncTask<Integer,Integer,Boolean>, where is the return value of: protected Boolean doInBackground(Integer... params)? Usually …

android return-value android-asynctask
best way to return an std::string that local to a function

In C++ what is the best way to return a function local std::string variable from the function? std::string …

c++ return-value
Idiomatic way to do conversion/type assertion on multiple return values in Go

What is the idiomatic way to cast multiple return values in Go? Can you do it in a single line, …

casting go return-value
Get return value from stored procedure

I'm using Entity Framework 5 with the Code First approach. I need to read the return value from a stored procedure; …

c# stored-procedures ef-code-first entity-framework-5 return-value
Returning two values from a function

Is it possible to return two values when calling a function that would output the values? For example, I have …

php function return-value
Does every Javascript function have to return a value?

I'm using Netbeans to add professional-like comments to each function, I write. So I begin each of it with /** and …

javascript return-value netbeans-7
C# numeric enum value as string

I have the following enum: public enum Urgency { VeryHigh = 1, High = 2, Routine = 4 } I can fetch an enum "value" as string like …

c# enums return-value return-type
Is returning null bad design?

I've heard some voices saying that checking for a returned null value from methods is bad design. I would like …

oop null return-value
How can I return a value from a JDialog box to the parent JFrame?

I have created a modal JDialog box with a custom drawing on it and a JButton. When I click the …

java swing return-value jdialog