Hi,
I am getting the following error in the CSVConnector.vb file when I try to compile (I took this file from the Sample Folder).
Class 'CSVConnector' must implement 'ReadOnly Property Rows() As System.Data.DataRowCollection' for interface 'ICSVConnector'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. (BC30154)
But I don't find any issues in ICSVConnector.vb file also, here Rows() and Header() have been specified as
Public Interface ICSVConnector
ReadOnly Property Rows() As DataRowCollection
ReadOnly Property Header() As DataColumnCollection
End Interface
Any help appreciated !!!
Thanks,
Dal
Error BC30154
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Error BC30154
When you implement an interface in VB, you have to explicitly mark every implemented property/method; i.e. in the CSVConnector class you have to change the property declaration as follows:
Alex
Ranorex Support Team
Public ReadOnly Property Rows() As DataRowCollection Implements ICSVConnector.Rows ... Public ReadOnly Property Header() As DataColumnCollection Implements ICSVConnector.Header ...Regards,
Alex
Ranorex Support Team
Re: Error BC30154
Yes It works...
Thanks for the info..
--Dal
Thanks for the info..
--Dal