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

Can you specify default values for Function arguments?

Status
Not open for further replies.

monroe

Programmer
Jan 28, 2002
1
US
Is it possible to set a default value for a function arguement? for example

Function selectDate (month,Day,year=2000)
....
....
End Function

So if the function is called with no year argument (I.e. myDate=selectDate(04,23) ) the year will automatically be set to 2000?

Thanks,
Brad

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top