-
I have written a COM object in VB. I have created some methods with optional parameters. Now I am Using ASP/VB Script to call these methods.
I am having a problem syntactically calling these methods if I do no want to pass all the parms. Using ":=" does not work and using multiple commas seems to almost work but I seem to be using them wrong.
Any ideas??
-
Using commas should work just fine. Here is an example:
Code:
Public Function MyFunction(MyParam1 As Integer, Optional MyParam2 As Integer = -1, Optional MyParam3 As Integer = -1)
End Function
Then calling this function like this:
MyFunction 2, , 5
Assuming that I don't pass the second parameter.
------------------
Serge
Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819