Optional parameters : Function Parameters « Class Module « VB.Net Tutorial
- VB.Net Tutorial
- Class Module
- Function Parameters
Module Module1
Sub Main()
ShowMessage()
End Sub
Sub ShowMessage(Optional ByVal strText As String = "Hello there!")
System.Console.WriteLine(strText)
End Sub
End Module
Hello there!