Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI All,

I am trying to load my drop down list with the table value.So my form calls
VB
Private Function GetDeliveryDelayDays() As DataTable


       Dim AppHelper As New RemoteObjects.RemoteApplication

       Dim retval As DataTable = Nothing

       Try

           retval = AppHelper.GetDeliveryDelayDays()

       Catch ex As Exception

           MsgBox(ex.Message)

       Finally

           AppHelper = Nothing

       End Try

       Return retval

   End Function

And now my remote application calls BLL
VB
Public Function GetDeliveryDelayDays() As DataSet

           Dim ds As DataSet = Nothing
           Dim Applications As New DAL.Applications

           Try

               ds = Applications.GetDeliveryDelayDays()


           Catch ex As Exception

               HandleException(ex)

           Finally

               Applications = Nothing

           End Try

           Return ds

       End Function

and now the Bll calls DAL but i get an error "Method not found: 'System.Data.DataSet PowerPay.DAL.Applications.GetDeliveryDelayDays()'." There is a method in DAL ...I am not sure wat is the issue. ANy help is greatly appreciated.
Posted
Comments
Richard C Bishop 14-Feb-13 11:29am    
You cannot call the function inside the same function you are creating. That defeats the entire purpose of using a function.
vidkaat 14-Feb-13 11:32am    
I am not calling a function inside a func its a different file...

1 solution

one is returning dataset and you are grabbing values in datatable!!!!!

If your method is returning dataset then you should call it using dataset. I think you are defining datatable while calling method.
try defining dataset for returning values in both function.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900