getting a return parameter from an Orcale SP using Delphi
Posted: Tue 14 Dec 2004 11:41
Hi There,
I wonder if someonw could please help me with a problem that I am having calling an Oracle srtored procedure using ODAC in Delphi.
I am passing 22 parameters t a stored procedure, with the final paramater being an output paramater, which the stored procedure places a value into.
In Delphi I am using the follwoing code to retrieve the return value from the stored procedure :-
Form_RingDataSet.CurrentMeasring.DBAResult :=
OraStoredProc1.ParamByName('P_RETURN_RESULT').AsString;
However this causes an unknow error.
Could anyone plase point me in the right direction, or provide a code sample.
Thank you for your help.
I wonder if someonw could please help me with a problem that I am having calling an Oracle srtored procedure using ODAC in Delphi.
I am passing 22 parameters t a stored procedure, with the final paramater being an output paramater, which the stored procedure places a value into.
In Delphi I am using the follwoing code to retrieve the return value from the stored procedure :-
Form_RingDataSet.CurrentMeasring.DBAResult :=
OraStoredProc1.ParamByName('P_RETURN_RESULT').AsString;
However this causes an unknow error.
Could anyone plase point me in the right direction, or provide a code sample.
Thank you for your help.