G
Guest
I am writing a program in VB.NET and as I was debugging a problem I noticed my For loop doesn't want to loop!
I originally had a upper bound which was an expression and it wasn't working. WHen I noticed this I changed the upper bound for a simple digit. As I step through my code, I see that it simply goes through the loop once and continues on it's merry way. Now I have programmed in Java, C++, and even Modula 3 before and I have never seen this EVER!
Do I have something wrong with my settings or what? I'm really stumped!
H E L P!!
here's the code:
dim i as Integer
For i = 0 To i = 5
'objdsBook is a dataset
output = output & objdsBook.BookCondition(i).Item(0).ToString
Next i
I originally had a upper bound which was an expression and it wasn't working. WHen I noticed this I changed the upper bound for a simple digit. As I step through my code, I see that it simply goes through the loop once and continues on it's merry way. Now I have programmed in Java, C++, and even Modula 3 before and I have never seen this EVER!
Do I have something wrong with my settings or what? I'm really stumped!
H E L P!!
here's the code:
dim i as Integer
For i = 0 To i = 5
'objdsBook is a dataset
output = output & objdsBook.BookCondition(i).Item(0).ToString
Next i