Optional parameters in VBScript?

Results 1 to 2 of 2

Thread: Optional parameters in VBScript?

  1. #1
    keith5000g Guest

    Default Optional parameters in VBScript?

    is it possible to have optional parameters in a function/sub in vbscript? i know it is possible in visual basic but i can&#039;t find any info on this for vbscript. it probably isn&#039;t possible but i&#039;ll be delighted if it is.<BR><BR>a visual basic example:<BR><BR>Function getID (x as String, Optional y as String)<BR> ...<BR>End Function<BR><BR><BR>keith<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default NO...

    ...but you can pass Null or a blank string instead then inthe finction check for Null or whatever you pass and work the logic.<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