Como: criar uma sequência de caracteres de uma matriz de valores de caracteres (Visual Basic)
This example creates the string "abcd" from individual characters.
Exemplo
Private Sub MakeStringFromCharacters()
Dim characters() As Char = {"a"c, "b"c, "c"c, "d"c}
Dim alphabet As New String(characters)
End Sub
Compilando o código
This method has no special requirements.
The syntax "a"c, where a single c follows a single character in quotation marks, is used to create a character literal.
Programação robusta
Null characters (equivalent to Chr(0)) in the string lead to unexpected results when using the string. The null character will be included with the string, but characters following the null character will not be displayed in some situations.
Consulte também
Referência
Caractere tipo de dados (Visual Basic)