Questions tagged [out-parameters]
145 questions
0
votes
1 answer
MySql OUT Parameter in Create Procedure not compiling
I'm attempting to write a MySQL Stored Procedure but I can't seem to get it to compile with multiple OUT parameters after selecting from the table. And I couldn't find any specific examples for what I'm attempting to do. The compiler error states,…

Rion
- 545
- 1
- 3
- 10
0
votes
3 answers
Defining a method that returns an error
How do I define a method that returns an error as well as a value?
For instance, when I call the managedObjectContext save method, the method returns a boolean, along with an error:
if(![context save:&error]) {
NSLog(@"%@", error);
}
Would you…

Allen
- 3,601
- 10
- 40
- 59
0
votes
1 answer
error while creating mysql procedure having SYS_REFCURSOR as out param
I'm creating procedure which is having two parameters , one is p_cursor of type SYS_REFCURSOR (OUT param) and the other one is p_rank of type INT(IN param). But it showing an error.
DELIMITER $$
CREATE PROCEDURE sp_student(p_cursor OUT…

Arun Kumar Mudraboyina
- 769
- 9
- 32
0
votes
2 answers
Run static method with out parameter using reflection
I have a simple static method that does not contain out parameters, returns anything or takes any arguments. I run it this way:
Assembly assembly =…

Bjørn
- 1,138
- 2
- 16
- 47
0
votes
1 answer
XPConnect (Firefox) - how to get value out of object
I'm trying to create a read from clipboard javascript function, and it's generally working, but I can't seem to extract the actual string from the object I create with the out parameter (Components.interfaces.nsITransferable). In case you're…

M3Mania
- 153
- 1
- 7
0
votes
4 answers
Parameter in C#
When I want get total value of memory in C# I found a kernel32 function in MSDN to invoke data from system. MSDN declare function this way:
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError =…

Amir Borzoei
- 670
- 2
- 9
- 30
0
votes
1 answer
Passing an [out] array to C++ function
I have a C++\CLI managed class method that takes an out array. I want to pass this out array to the underlying C++ function that takes a vector< char >&. This C++ functions fills the array with values.
bool MyLib::GetBits([Out] array

A9S6
- 6,575
- 10
- 50
- 82
0
votes
3 answers
Can I call a stored procedure in a cfloop and output dynamic out-parameters in Coldfusion?
Last question for tonight, still using Coldfusion8 and MySQL.
I have a table with products, each with Price A, B and C. I need to retrieve the min and max values for A,B,C across all prices (A_min, A_max, B_min, B_max, C_min, C_max)
I thought I…

frequent
- 27,643
- 59
- 181
- 333
-1
votes
2 answers
Accessing the out parameter of a Function when it is invoked through a Func
Apologies I haven't done very well with the title of the question, hopefully it will be apparenent with some code
I've created a class that stores poker hand information as follows
public class BestHandSummary
{
public Func Test {…

user48408
- 3,234
- 11
- 39
- 59
-2
votes
1 answer
Wrapper around a function that modifies its arguments when we want to maintain caller state
Is it good practice to create a wrapper around a function that modifies its arguments (out parameters) and we want to maintain the caller state?
Is there a better way to achieve this?
The below example is a recursive function that will modify its…

Brian Lee
- 3
- 3