You can't have optional parameters with VBScript. You *can* have them with JScript. With VBScript, you must use either stubs (no optionals), dictionary objects, or arrays to pass data in.
With VB.Net/C# (and a variety of other dot.net languages and non-dot.net ones) you can use overloading with functions. David L. Penton, Microsoft MVP JCPenney Technical Specialist / Lead "Mathematics is music for the mind, and Music is Mathematics for the Soul. - J.S. Bach" [EMAIL PROTECTED] Do you have the VBScript Docs or SQL BOL installed? If not, why not? VBScript Docs: http://www.davidpenton.com/vbscript SQL BOL: http://www.davidpenton.com/sqlbol -----Original Message----- From: Kangaroo's Dream [mailto:[EMAIL PROTECTED]] Is there a way to write a function that some or all of its parameters may be optional? --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
