Page 1 of 1

Help of TOraDataSet.CreateProcCall() and TOraSQL.CreateProcCall() are incorrect ?

Posted: Mon 18 Dec 2006 08:42
by herbert
In ODAC V 5.80.038, help of TOraDataSet.CreateProcCall(Name) and TOraSQL.CreateProcCall(Name) are incorrect,
parameters should be CreateProcCall(Name,int), but I do not know what is the value of int.
Do I need not execute CreateProcCall() before assign TOraParams ?

Best regards,
Herbert Chang.

Posted: Mon 18 Dec 2006 09:49
by Plash
The second parameter of the TOraDataSet.CreateProcCall method is a number of overload in case several overloaded stored procedures with the same name exist. This parameter has default value. So if a stored procedure that you need to execute has no overloads, than you can call the CreateProcCall method with the Name parameter only.

What value is the default ?

Posted: Mon 18 Dec 2006 16:40
by herbert
If I call with Name only, compile Error occurs.
Does the default value is zero or one ?

Overload No

Posted: Tue 19 Dec 2006 00:55
by herbert
Sorry, I found overload no in TOraSession.ExecProc(), It is start from 1.
But, if CreateProcCall(Name) parameters ommit overload no,
compiler occurs Error "E2193 Too fee parameters".

Best regards,
Herbert Chang

Posted: Tue 19 Dec 2006 10:40
by Plash
Defaul value for the Overload parameter is available in Delphi only. In C++ Builder a value for this parameter must be specified.