Questions tagged [out-parameters]
145 questions
3
votes
11 answers
Why is this C# code not compiling?
Why is this C# code not compiling?
public static Dictionary GetBulkCustom(int bufferId,
int startSecond,out int chunksize, out int bardatetime)
{
//const string _functionName = "GetNextBulkWatchData";
UserSeriesCard…

mustafabar
- 2,317
- 6
- 31
- 47
3
votes
4 answers
why can't I pass an unassigned object variable in an out parameter and then assign it
In C#, why can't I pass an unassigned object variable in an out parameter and then assign it?
If I try to do this, there is a compiler error: "Local variable cannot be declared in this scope because it would give a different meaning to…

CJ7
- 22,579
- 65
- 193
- 321
3
votes
3 answers
Patterns for simulating optional "out" parameters in C#?
I'm translating an API from C to C#, and one of the functions allocates a number of related objects, some of which are optional. The C version accepts several pointer parameters which are used to return integer handles to the objects, and the caller…

Tara McGrew
- 1,987
- 19
- 28
3
votes
4 answers
How many OUTPUT parameters can we declare for a stored procedure in SQL Server?
How many OUTPUT parameters can we declare for a stored procedure in SQL Server ?

odiseh
- 25,407
- 33
- 108
- 151
3
votes
2 answers
FakeItEasy ReturnsLazily with out parameter
I'm new to using FakeItEasy and rather stuck at my first attempt. The interface i want to fake has a method like this:
byte[] ReadFileChunk(string path,int offset,int count,out long size);
I would like to see how the arguments are passed on, so I'm…

user2731971
- 31
- 3
3
votes
1 answer
Mysql Stored Procedure Select Column into OUT parameter
I have a stored procedure similar to this one, and when I try to save it, I get this error:
Undeclared variable: my_column
CREATE PROCEDURE p (OUT column_param VARCHAR(25))
BEGIN
SELECT my_column INTO coumn_param limit 1;
END;
Why can I not…

Get Off My Lawn
- 34,175
- 38
- 176
- 338
3
votes
1 answer
Why do Apple headers not have __autoreleasing for NSError** params?
Why aren’t Apple’s methods that take NSError** declared as NSError * __autoreleasing * ?
The Transitioning to ARC Release Notes seems to suggest that they should be (?).
For example, all the routines in NSFileManager.h. But I don't actually see any…

Dad
- 6,388
- 2
- 28
- 34
3
votes
3 answers
Is it possible to desregard 'out' parameters?
I've got a method like this...
public List TestMethod(Int32 parameter, out Boolean theOutParameter)
{
}
When I call the method, if I'm not interested in theOutParameter what would the call to the method look like? Seems a bit excessive to…
user1017882
2
votes
4 answers
SubSonic: retrieving value of stored procedure OUT parameters
I love your tool. I have been using it a lot, but just today I ran into a problem...
I wrote a stored procedure that returns some values via OUT parameters, but SubSonic does not seem to generate the out parametes of the stored procedure method. For…
Slava Isayev
2
votes
3 answers
Is it true that OUT parameter must be assigned a value in PL/SQL?
create or replace procedure ppp(ot OUT number)
is
begin
null;
end;
/
This works fine on being called.

Pop Stack
- 926
- 4
- 19
- 27
2
votes
1 answer
How can I have out parameters in Java?
My objective is to recursively iterate a R-way trie, and find the longest common prefix that prefixes at least two strings, and how many strings it concerns. I have written various methods to solve this, but I'm not satisfied with the technical…

Miles
- 103
- 12
2
votes
1 answer
Can Metro make Java webservices interoperable with WCF even if Java lacks out parameter support?
I have a WCF client that used to call a WCF method with an out parameter:
int SomeMethod(out int anotherReturnValue);
When reimplementing this method in a Java Webservice will I have to change this method contract? I heard that something called…

Jader Dias
- 88,211
- 155
- 421
- 625
2
votes
4 answers
PHP, PDO Stored Procedure return nothing or unchanged value
i am using php with mysql.
My stored proc returns values via out parameter via Toad4MySQL but when it comes to php Pdo, it does not capture the return value.
here's my code
$validusername= 'x';
$validemail = 'x';
$validkey = 'x';
$query =…

Melvin
- 377
- 2
- 7
- 19
2
votes
1 answer
IL code to call method with out parameter
I want to IL generate a dynamic method
delegate ArraySegment X(MyClass mc);
that calls a method of the signature on mc and returns its out parameter.
MethodInfo methInf = aClass.GetMethod("Y",
BindingFlags.Public | BindingFlags.Instance,…

Evgeniy Berezovsky
- 18,571
- 13
- 82
- 156
2
votes
1 answer
OUT parameters don't work for some users
I have an Excel worksheet that needs to make a number of calls out to a MySQL server. Here's the VBA code, simplified to illustrate this issue:
Public Function Connect() As ADODB.Connection
Dim cn As New ADODB.Connection
With cn
…

p.s.w.g
- 146,324
- 30
- 291
- 331