Click here to Skip to main content
12,747,719 members (38,521 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
HI All,

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

       Dim AppHelper As New RemoteObjects.RemoteApplication

       Dim retval As DataTable = Nothing


           retval = AppHelper.GetDeliveryDelayDays()

       Catch ex As Exception



           AppHelper = Nothing

       End Try

       Return retval

   End Function

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

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


               ds = Applications.GetDeliveryDelayDays()

           Catch ex As Exception



               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 14-Feb-13 6:27am
richcb 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100