too many arguments

  • Thread starter Thread starter portroe
  • Start date Start date
P

portroe

Hi all,

while creating an object with the below,

I get an error saying too many arguments, when I remove one argument
then every thing is okay, any body know why?

portroe

'create new object

myorderdetails = New Orderdetails(myCustomer.FirstName,
myCustomer.LastName, myCustomer.Address, myCustomer.Phone,
myCar.BrandName, myCar.Model, myCar.Color, myCar.Power)
 
ehh
probably becouse you didn't create a constructor w an extra argument?

have a look in the Orderdetails class, c if you find a sub new w 8
parameters.

eric
 
that was it,

thanks
ehh
probably becouse you didn't create a constructor w an extra argument?

have a look in the Orderdetails class, c if you find a sub new w 8
parameters.

eric
 
Back
Top