usingVB
Programmer
- Jan 1, 2009
- 8
Hi all,
I have a question about writing to textboxes using VB.
I have the following code which successfully writes to the immediate window, showing both data and frequency:
for example….
A 4
B 5
C 0
D 6
etc...
' Loop through the values returned by GetHistogram
For i = LBound(dataValues) To UBound(dataValues)
Debug.Print dataValues(i) & " " & dataFrequency(i)
Next i
End Sub
However, when I try to make this write to my textbox it only writes the last record, i.e...
D 6
the code I'm using is...
' Loop through the values returned by GetHistogram
For i = LBound(dataValues) To UBound(dataValues)
Form_Name.Textbox_name.Text = dataValues(i) & " " & dataFrequency(i)
Next i
End Sub
Can anybody help? I’m lost!
Cheers!
I have a question about writing to textboxes using VB.
I have the following code which successfully writes to the immediate window, showing both data and frequency:
for example….
A 4
B 5
C 0
D 6
etc...
' Loop through the values returned by GetHistogram
For i = LBound(dataValues) To UBound(dataValues)
Debug.Print dataValues(i) & " " & dataFrequency(i)
Next i
End Sub
However, when I try to make this write to my textbox it only writes the last record, i.e...
D 6
the code I'm using is...
' Loop through the values returned by GetHistogram
For i = LBound(dataValues) To UBound(dataValues)
Form_Name.Textbox_name.Text = dataValues(i) & " " & dataFrequency(i)
Next i
End Sub
Can anybody help? I’m lost!
Cheers!