Problems with TOraclePackage

Rocker

Member
I use the DOA in my programs and I've got some problems with using these components. I'm interested in the TOraclePackage component . DOA version is 3.4.3, Delphi is 5. I can't use overloaded functions in my Oracle Packages, if I call them from Delphi's program. A package's status is valid. When I call these functions via TOraclePackage.CallxxxFunction I get an error message... Is it a bug?
Please, send me your answers to a_w_k@mail.ru
Thanks a lot.
 
What is the definition of the overloaded functions, how do you call them from Delphi, and what is the error message?

------------------
Marco Kalter
Allround Automations
 
There are,for example, function definitoins:
function getCurMonth return number;
function getCurMonth(d in date) return number;

A error message is about parameters of these function. I don't remember its...
Thanks a lot.
 
I call them like this:
procedure a;
var m1, m2 : Integer;
begin
m1 := OraclePack.CallIntegerFunction('getCurMonth', []);
m2 := OraclePack.CallIntegerFunction('getCurMonth', [now]);
end;
Thanks a lot.
 
This should be correct, if the TOraclePackage properties PackageName and ParameterName are set correctly.

To see what exactly goes wrong, you can set TOraclePackage.Debug to True. This will reveal what exectly is sent to the server.

------------------
Marco Kalter
Allround Automations
 
Back
Top