Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max number of vars in function

Status
Not open for further replies.

sebpas

IS-IT--Management
Mar 30, 2001
39
CA
This question is simple but I don't think everyone knows the answer. How many vars can you give a function when you call it? Is it infinite?
 
Sepas,

I think it is fairly infinite depending on how you set it up. Meaning that if you send the all variable by variable I think there is a limit, but if you use all the ways possible like declaring types and such you may find you can send more than you could ever possibly imagine

Just my thoughts on this one, though I'd really like to know the whole facts on this one too.

Mavors
Cincinnati, Ohio
 
hehe, trick question... Don't think it was intended as that though.

When you call a function/sub you must pass all required parameters and can pass zero to all of the optional parameters.

And I'm not sure many know the number of parameters that are allowed when you define the function/sub. I'm in the group that doesn't know, care and hasn't ran into problems involving a limit.

As Mavors indicated, there are ways available to present information that render parameter count limits meaningless.



Wil Mead
wmead@optonline.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top