Public Class Form1 Dim str() As String Dim x As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For x = 0 To 5 str(x) = " D" Next End Sub End Class
Dim str(4) As String
Dim MyList as new list(of string) For X = 0 to 5 MyList.add " D" Next 'Now you can just use MyList.ToArray()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)