Public Function myMethod () as string
Public Function myMethod (aParm as string) as string
Public Function myMethod (anObj as object) as string
It works in VB.NET, being a .NET related forum, I generally try to provide answers that work in .NET.aewarnick said:That is probably VB and I don't think you quite know what I mean.
Ummm... NO. Method overloading is probably a better approach to getting the functionality you require, but the Optional keyword is there just as I said above -- it is exactly what you asked for btw.I guess the only way is to use method overloading, right?