Regards,
Every time I try to run my application, the following error:
"Too many arguments to 'Public Sub New()"
Now,the error occurs in the following method:
Public Sub AddDataTotale(ByVal AllDonnees As String)
Dim DatosTotal = New DataAudit(AllDonnees)
Me.DonneeTotale.Add(DatosTotal)
End Sub
The error is located precisely in "ALLDonnees".I want to point out that this method is in the class DataGeneral.
Now, Visual studio gives me the option to create the Constructor in another class called DataAudit:
Private _allDonnees As String
Sub New(ByVal AllDonnees As String)
_allDonnees = AllDonnees
End Sub
When I create the constructor, the error disappears.
Who can explain the cause of the error. There is another way to solve this problem?
thank you very much