« [VB.NET] 日付の存在チェック | メイン | [VB.NET] DataGridの行タイトルを表示 »

2005年12月27日

[VB.NET] StringBuilderの使用

        Dim Str As System.Text.StringBuilder
        Try
            Str = New System.Text.StringBuilder
            Str.Append("あいうえお")
            Str.Append(vbCrLf)
            Str.Append("かきくけこ")

Label1.Text = Str.ToString

Catch ex As Exception
MessageBox.Show(ex.ToString)
Finally
If IsNothing(Str) = False Then Str = Nothing
End Try

2005 / 12 / 27