What I am trying to do is, by using a command button or a timer, display the data sequentially, one line at a time in labels.But I also want to be able to control the start and end points in the data sequence -- for example I might want the data between 1-200, then btween 400-620 and so on.
This snippet
-
If index1 < 1323 Then
-
index1 = index1 + 1
-
Else
-
'MsgBox "This is the last record of the data"
-
Label1.Caption = line_value1(index1)
-
End If
works fine as long as I don't change the value of index1.
But as soon as I set index1=50 then it doesn't work right.
The label will display the line_value at line #50, but doesn't move to the next line as in the original where it keeps going till the end of the data in the file.
GregoryPosted Sep 18, 2007, 3:31 PM
Are you using just 1 label or 100?
Is your loop a Do While Not EOF?
Wouldn't it be better to try and show all that data in something besides labels like a scrolling list box?
Jan MontanoPosted Sep 17, 2007, 10:50 PM