![]() |
Do..while loop and ....error!
Hello all, my post is about visual basic 6.0. Im tryin to add 10 scores using the DO ... while loop and adding them as an array element, after adding, it simply displays the sum of all quiz scores. I dont know if the syntax is correct and when i increment the counters, and the counters for the index of the array, an error occurs, it says,
"Compile Error Expected: Expression" I know this is simple, and just learning on this, i just want to know why it wont let me increment. Please help me on this. Here is the code below: :
Dim q1 As IntegerThis would mean a lot to me, if u look and help me.... Thank you all... By: Jaynie |
You cant do i++ in vb.
:
|
Quote:
thanks for the help kyndig.... i have to use the Do while loop thou... :( how is it done in a do while loop? :confused: |
A for loop is a specialised loop that counts through a set of numbers. For example:
:
for i = 0 to 10:
i = 0 |
Quote:
i = i + 1 can also be written as i += 1 |
| All times are GMT -5. The time now is 1:30 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC