473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

too many arguments

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)

Nov 20 '05 #1
2 2917
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

"portroe" <bo*@sleigh.com> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl...
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)

Nov 20 '05 #2
that was it,

thanks

EricJ wrote:
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

"portroe" <bo*@sleigh.com> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl...
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)



Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Chuck Anderson | last post by:
I have a function with 7 inputs. The last three have default values. I want to call that function specifying the first four, skip two and then specify the last. I thought I could write this...
9
by: Matt Eberts | last post by:
Sorry, bad title. Anyway, is there a way to pass the arguments to an object instantiated via a constructor using the arguments object and have it expanded, so to speak, so that it doesn't appear as...
6
by: Melkor Ainur | last post by:
Hello, I'm attempting to build an interpreter for a pascal-like language. Currently, I don't generate any assembly. Instead, I just build an abstract syntax tree representing what I've parsed...
21
by: dragoncoder | last post by:
Consider the following code. #include <stdio.h> int main() { int i =1; printf("%d ,%d ,%d\n",i,++i,i++); return 0; }
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
9
by: Csaba Gabor | last post by:
Inside a function, I'd like to know the call stack. By this I mean that I'd like to know the function that called this one, that one's caller and so on. So I thought to do: <script...
7
by: sfeher | last post by:
Hi All, Is there a way to preserve the arguments across functions? I have: <script> function myFirstFunction() { // arguments = 'param1'
36
by: Pacific Fox | last post by:
Hi all, haven't posted to this group before, but got an issue I can't work out... and hoping to get some help here ;-) I've got a base object that works fine with named arguments when called...
7
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the...
2
ADezii
by: ADezii | last post by:
When a call is made to a Sub or Function Procedure, you can supply Arguments in the exact order they appear in the Procedure's definition, or you can supply them in any position by name. To...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.