I am trying to incorporate MSFlexgrid to read all the data from a text file but i am currently having a problem with a line
Below is the coding
Private Sub Command1_Click()
MSFlexGrid1.Cols = kiraCols + 1
Open App.Path & "\master_data.txt" For Input As #1 '
linecount = 1
Do While Not EOF(1)
Line Input #1, Readline1
With MSFlexGrid1
'text
.Rows = .Rows + 1
.row = .Rows - 1
.col = 0
.Text = Readline1.Text
.col = 2
.Text = Readline1.Text
.col = 3
.Text = Readline1.Text
linecount = linecount + 1
End With
Loop
Close #1
End Sub
Sample of the data in the text file:
51.370E+00
51.370E+00
51.370E+00
51.370E+00
the problem is on the line ".Text = Readline1.Text" and so on....so....please....can anyone help me.....thank you very much........