Concatenate strings in Console.WriteLine statement : Console Write « Language Basics « VB.Net Tutorial






Module Module1

    Sub Main()
        Dim WebSite As String
        Dim Publisher As String = "AAAA"

        Console.WriteLine("AAAA: " & Publisher)

        WebSite = "CCCC." & Publisher & ".DDDD"
        Console.WriteLine("String one " & WebSite)

    End Sub

End Module
AAAA: AAAA
String one CCCC.AAAA.DDDD








1.4.Console Write
1.4.1.Output string to the Console
1.4.2.Variable index
1.4.3.Write some text based on the specified data type
1.4.4.Concatenate strings in Console.WriteLine statement
1.4.5.Reference variable index in Console.WriteLine
1.4.6.Use Console.WriteLine to display various type variables