I was always under the impression that VBScript did not support the concept of optional parameters, and this page seems to support that: http://www.4guysfromrolla.com/webtech/071801-1.shtml. However, you'll also find on this page a couple of examples of how to simulate optional parameters. Hope this helps.
--- In [EMAIL PROTECTED], "elriba75" <[EMAIL PROTECTED]> wrote: > > Is it possible to have optional parameters to subroutines and/or > functions. > > I looked at the manual and in the group, but couldn't find an > indication whether they are available or not. > > I would like to do something like: > > Function SetByKey(pRemote = False) > If pRemote Then > ...... > Else > ...... > End If > End Function > > If the function is called without parameters, "pRemote" would be set > to False, otherwise it would take the given value. > > Is something like this available? > > Best regards, > Edgard > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to nsb-ce@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en -~----------~----~----~----~------~----~------~--~---