VB Code:
Option Explicit
Dim strLineOfText As String
Dim i As Integer
Dim strFile As String
Private Sub Command1_Click()
i = 0
strFile = "H:\Visual Basic\Magic Database\od_spoiler_en.txt"
Open strFile For Input As #1
Do While Not EOF(1)
Line Input #1, strLineOfText
Text1(i).Text = strLineOfText
i = i + 1
Loop
Close #1
End Sub
Quote:
If you put a text box on a form and then copy and paste the same text box on the same form, vb will ask if you want to create a control array. (CLICK ON YES!!!!!) A control array is just like an array, but with control.
You need to have a textbox control array for this to work!