|
-
Apr 11th, 2008, 08:22 AM
#1
Thread Starter
Fanatic Member
[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.
-
Apr 12th, 2008, 04:17 AM
#2
Re: [2005] Need help: inheriting from the tablerow generated by tableadpater wizard
Call base.New() from your Sub New.
-
Apr 12th, 2008, 06:14 AM
#3
Thread Starter
Fanatic Member
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.
-
Apr 12th, 2008, 12:49 PM
#4
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.
-
Apr 14th, 2008, 08:07 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|