Optional Parameters in VBScript function

Results 1 to 2 of 2

Thread: Optional Parameters in VBScript function

  1. #1
    ASPSnappy Guest

    Default Optional Parameters in VBScript function

    Does anyone know if it is possible to have an optional parameter in an ASP VBScript function. If so can you tell me how you did it.<BR><BR>I tried<BR><BR>Function Foo (User, Optional Attr)<BR> &#039function stuff<BR>End Function<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Optional Parameters in VBScript function

    I&#039m not sure, but try this:<BR><BR>Foo (name,"")<BR><BR>Function Foo (User, Attr)<BR> If Attr = "" then ignore it<BR>&#039function stuff<BR>End Function<BR>....<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •