hi,
if u want to call a ORACLE FUNCTION IN
VB USING ADO
follow this..
Dim CmdFun as NEW ADODB.COMMAND
Dim Param_Given_Day As ADODB.PARAMETER
Dim Param_Centre As ADODB.PARAMETER
Dim Param_Return_Value As ADODB.PARAMETER
Dim Conn As NEW ADODB.CONNECTION
Conn.Open <give the connection string>
With CmdFun
.ActiveConnection = Conn
.CommandType = adCmdStoredProc
.CommandText = "ValidWorkingDay" 'Name of the ORACLE Function, in String
.CommandTimeOut = 10
End With
Set Param_Given_Day = New ADODB.PARAMETER
Set Param_Centre = New ADODB.PARAMETER
Set Param_Return_Value = New ADODB.PARAMETER
With Param_Given_Day
.Direction = adParamInput
.Value = "give the input value for the parameter, here"
End With
With Param_Centre
CREATE OR REPLACE function
ValidWorkingDay(given_day date,centre varchar2)
return boolean
Regards,
Raghu