Optional Keyword

Results 1 to 2 of 2

Thread: Optional Keyword

  1. #1
    Join Date
    Dec 1969

    Default Optional Keyword

    in VB you can specify the Optional keyword when defining a function, to make a parameter optional, is there any way to do this in ASP/VBScript?

  2. #2
    Steve Cimino Guest

    Default No, but you can cheat

    x = myFunction(5, null)<BR><BR>Public Function myFunction (param1, param2)<BR><BR> If IsNull(param2) Then<BR> &#039We didn&#039t need this value<BR> End If<BR><BR>End Function

Posting Permissions

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