Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
 
       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
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 14-Feb-13 5:27am
vidkaat520
Comments
richcb at 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 at 14-Feb-13 11:32am
   
I am not calling a function inside a func its a different file...

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,280
1 Sergey Alexandrovich Kryukov 6,059
2 Maciej Los 3,579
3 Peter Leow 3,383
4 CHill60 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
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