-
HII !
i want to know why the textbox that output a report with the follow cod :
Private Sub Form_Load()
For I = 0 To 4
Report_txt.Text = Arryreport(I) & vbNewLine
Next I
End Sub
it's show me only the last report off the arry ( it's run overide the previous report's) .
please help me and tell me what i can do !!
10X !!!
-
Try This. You were assinging a new value to the text box every time you went around the loop. What you need to do is add the text to the text box.
Code:
Private Sub Form_Load()
For I = 0 To 4
Report_txt.Text = Report_txt.Text & Arryreport(I) & vbNewLine
Next I
End Sub
-
If you wish to show more than 1 line of text in textbox
make sure the MULTILINE property is set to TRUE
DocZaf
{;->
-
You also can use the vbCrLf instead of vbNewLine command.