its possible to put a default value to a parameter of a function in VB.NET
its开发者_如何学C just like that in other langauges (php in the example)
function myFunction($message,$sender="nodoby") {
return $message." by ".$sender;
}
no body told me use overload !!!
You could use
Public Function MyFun(Optional myParam As String = "MyDefaultValue")
精彩评论