> Is there anyway to call overloaded functions from a script environment?
>
> Example:
>
> Public Sub MyFunction( byval subject as string, byval body as string )
> Public Sub MyFunction( byref m as message )
To have a close look at your COM visible declarations set a reference in
Visual Basic 6 and use object browser. So you can see how your overloaded
function is exposed to COM.
Typically .NET exposes your functions with the appendix _1, _2, _3,... if
you have overloaded functions visible to com. If don't like this behavior
your should consider to declare your overloaded functions as private and
expose a function with optional parameters. This public and COM visible
function can decide - depending on optional parameters recieved - which
overloaded private function to call.
Mario
Johan Karlsson - 23 Mar 2005 11:29 GMT
Thanks for a quick reply!
Keep up the good work!
/Johan
>> Is there anyway to call overloaded functions from a script environment?
>>
[quoted text clipped - 15 lines]
>
> Mario