Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    589

    Resolved [RESOLVED] [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

    Hi,

    I generated a strongly typed dataset, and genrated ProductRow with the TaableAdapter.

    I need to implement a class inheritedProductRow that inherits from the productRow class, then I wanna implement the Sub New method for my inheritedProductRow class.

    Can u give me a code example for doing that pls. Because when I do this:

    Imports myDataSet

    Public Class inheritedProductRow
    Inherits productRow

    Public Sub New()

    End Sub
    End Class


    I get an error saying: Sub New in Base Class can not be called with no arguments or somethiong like that

    Can u help me pls
    Thanks a lot for your help.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

    Call base.New() from your Sub New.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    589

    Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

    I thik I still got an error. did u trying Mendhak, creating productRow through tableadapter wizard and implenting class inheriting from that generated productRow class ?

    FR: Merci beaucoup
    Thanks a lot for your help.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

    No, I didn't try creating a productRow through a tableadapter, as I do not have a productRow, I don't have your database or any of your code.

    The reason you're getting the error message is because the base class' constructor needs to be called and at the same time, the base class' constructor may not accept 0 arguments, it may be expecting something.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    589

    Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard

    i think u re totally right mend, i ll let ya know
    Thanks a lot for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width