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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you pass multiple parameters in a Function

Status
Not open for further replies.

sandylou

Programmer
Jan 18, 2002
147
US
I have a function:

Function ShowHeader(deptname,section)
Blah blah blah

End Function

I want to call it from another page:

ShowHeader "Accounting"

I only know how to pass 1 value, how do i do 2?
 
the same way you write the function

ShowHeader("deptname", "section")



Chris.

Indifference will be the downfall of mankind, but who cares?
 
I received the following error:

Error Type:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
 
Sorry brain disengaged
drop the brackets


ShowHeader "deptname","section"



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks! You are awesome! You always help me out! Now how do I get my style to show up in that include page? Can I just use

<link href=&quot;Includes/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>


 
yep that's it




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks so much! Hey so what about when I pass a variable like ShowHeader departmentName instead of ShowHeader &quot;deptname&quot;. Can I do this? What is a good book which goes over this stuff?
 
Just the same. Just as long as the variable is the correct type obviously.
I don't know of any good books but these are some pretty good references




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top