Questions tagged [out-parameters]
145 questions
2
votes
4 answers
BestPractices: Out parameters vs complex return types in methods
Using complex return type:
Public Type TimeType
hours As Integer
minutes As Integer
End Type
Public Function ParseTimeField(time As String) As TimeType
Dim timeObject As TimeType
Dim amountOfDigitHours As Integer
If time = ""…

Rookian
- 19,841
- 28
- 110
- 180
2
votes
1 answer
Is there a way to receive the return value in Python through the OUT parameter in C++?
I have a C++ dll, one of the export function is defined as follows:
OPERATEMYSQLSTDCALL_API int __stdcall CheckMac(char * pcMac, OUT LPSTR errorInfo);
I use it in python, use the ctypes library,i read some of the information and call it as…

pduan
- 41
- 6
2
votes
0 answers
In a SRGS grammar, how can I reference the value recognized from an "one-of" element in following tag element?
I am defining a grammar using SRGS format. I know I could use one of the following:
...
- item 1
out.chosen="item 1"
- item 2
out.chosen="item…

Paolo Vigori
- 1,612
- 1
- 18
- 32
2
votes
1 answer
Assigning variable value to out parameter in mysql
Both insert statements are successful and inserts correctly on table registration and registration_header. My only problem is, it does not return the correct id through the myOutParameter.
It's not picking up the value of @var_registrationId using…

heisenberg
- 1,784
- 4
- 33
- 62
2
votes
1 answer
Mysql Stored Proc not returning a VARCHAR out parameter
Below is my stored procedure. It works fine but my problem is I can't get the output parameter as VARCHAR.
The part where I'm having problem is the assignment of @curcName to the out parameter op_resultMessage
BEGIN
SET op_resultMessage =…

heisenberg
- 1,784
- 4
- 33
- 62
2
votes
5 answers
.NET LINQ Call Method with Out Parameters Within Query and use Out Values
I have a list of objects, which has a method that has a couple of out parameters. How do i call this method on each object, get the out parameter values and use them later on in the query, perhaps for checking in a where clause?
Is this possible and…

c0D3l0g1c
- 3,020
- 5
- 33
- 71
2
votes
2 answers
How can I initialize sigset_t or other variables used as "out parameters" in Rust?
I'm trying to learn more about FFI in Rust and linking with C libraries, specifically libc. While on my "quest", I came across the following problem.
Normal pattern in C
void(* sig_set(int sig, void(*handler)(int))) {
// uninitialized sigaction…

Daniel Robertson
- 1,354
- 13
- 22
2
votes
2 answers
How to override a virtual method that has an out parameter?
I have this virtual method in my base class:
public virtual bool AgregarEtapa(DateTime pFechaIngreso, EtapaEnvio.Etapas pEtapa, OficinaPostal pUbicacion, string pNombreRecibio, out string pMensajeError)
{
string mensajeError = "";
bool…

emmaielle
- 314
- 3
- 12
2
votes
2 answers
How to execute a Stored Procedure with RECORD TYPE as OUT parameter
This is the package specification:
create or replace PACKAGE EMPLOYEE_DETAILS AS
TYPE DETAILS IS RECORD(
EMPLOYEE_ID NUMBER(6,0),
EMPLOYEE_FIRST_NAME VARCHAR2(20),
EMPLOYEE_LAST_NAME VARCHAR2(25)
…

kris
- 21
- 1
- 1
- 2
2
votes
1 answer
MyBatis annotations to call Stored Procedure and get Out Params
I am using MyBAtis-3 with MyBAtis-Spring.
When i tried to call a stored procedure that returns more than one out params using MyBatis annotations. I don't get anything, I can see that the input parameter is passed to the SP in the logs and it hangs…

user3815000
- 131
- 3
- 12
2
votes
1 answer
Using out parameters of a C Function in Haskell
I have functions that do the following sort of thing.
CStructType* foo;
int result = someFunctionThatAllocsFooAsOutput(&foo);
The first thing that comes to mind after reading around about this stuff is:
-- Standard binding done elsewhere
data…

OmnipotentEntity
- 16,531
- 6
- 62
- 96
2
votes
3 answers
How to get current executing method's out parameter list in c#?
I am stuck on, Suppose I am having a method:
public void InsertEmployee(Employee _employee, out Guid _employeeId)
{
//My code
//Current execution is here.
//And here I need a list of 'out' parameters of 'InsertEmployee' Method
}
How to…

Red Swan
- 15,157
- 43
- 156
- 238
2
votes
4 answers
PL SQL - Return SQLCODE as OUT parameter is accepted?
I have a procedure that returns an OUT parameter.
procedure foo (in_v IN INTEGER, out_v OUT integer)
BEGIN
...
EXCEPTION
WHEN OTHERS THEN
--sh*t happend
out_v := SQLCODE;
END
That parameter will be 0 if everything goes OK, and <> 0 if…

Tom
- 43,810
- 29
- 138
- 169
2
votes
1 answer
How to reflect on method with out params?
I am trying to get a MethodInfo object for a method on a type with an out param in its signature. Something to the effect of this:
MethodInfo tryParse = typeof(T).GetMethod(
"TryParse",
BindingFlags.Public|BindingFlags.Static,
null,
…

mckamey
- 17,359
- 16
- 83
- 116
2
votes
1 answer
Wsdl to Java OUT parameters
As stated in this link: link
there are two ways to deal with OUT parameters when generating java classes from wsdl which handle OUT parameters
holder types
return type
When using Eclipse's Web Service and Web Service Client wizards I am getting…

Jarek Mazur
- 2,052
- 1
- 25
- 41