开发者

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")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜