changing value of index1
Collapse
X
-
I am wondering if index1 is set as 1 by default in vb.net and cannot be changed this way. All I am trying to do is, by using a command button or a timer, display the data sequentially, one line at a time.But I want to be able to control the start and end points in the data. Thanks for your attempt at helping out. -
All I can figure out that you might be doing some VB type code in there.
Apparantly VB .Net is different from VB, So other who are more proficient with it and its differences might be able to help out.
CheersLeave a comment:
-
I meant it doesn't work as it should. The label will display the line_value at line #10, but doesn't move to the next line as in the original where it keeps going till the end of the data. Consequently there are no exceptions.Leave a comment:
-
If its not working, did it give you any exceptions?
Please provide that (im not a vb programmer, but can figure out certain things based on exceptions)
cheersLeave a comment:
-
changing value of index1
This piece of code
works fine as long as I don't change the value of index1.Code:If index1 < 1323 Then index1 = index1 + 1 Else 'MsgBox "This is the last record of the data" Label1.Caption = line_value1(index1) End If
As soon as I insert index1=50 then it doesn't work right.
It worked fine in vb6 but not in vb.net. Any ideas why it doesn't work.
ThanxTags: None
Leave a comment: