Stl Mongo
2015-04-05 13:34:47 UTC
I have some code that I can't seem to get to work properly. What I want
to do is loop through an array of integers and display a string during
each iteration to a label. I also want a delay between each iteration.
So, get first number, display on label, wait, get second number added to
first, display both, and so on.
Right now, what I have seems to go through each iteration, but doesn't
display each. After the loop finishes (delay works) it displays the
final string on the label.
Here is my code for that section:
For i = 0 To (numDrawn - 1)
strResults += (arrNumbers(i).ToString + " ")
Me.lblResults.Text = strResults
watch.Start()
Do Until watch.ElapsedMilliseconds > 1000
Loop
watch.Reset()
Next
Can anyone help me get this to work as wanted?
Thanks,
Mongo
to do is loop through an array of integers and display a string during
each iteration to a label. I also want a delay between each iteration.
So, get first number, display on label, wait, get second number added to
first, display both, and so on.
Right now, what I have seems to go through each iteration, but doesn't
display each. After the loop finishes (delay works) it displays the
final string on the label.
Here is my code for that section:
For i = 0 To (numDrawn - 1)
strResults += (arrNumbers(i).ToString + " ")
Me.lblResults.Text = strResults
watch.Start()
Do Until watch.ElapsedMilliseconds > 1000
Loop
watch.Reset()
Next
Can anyone help me get this to work as wanted?
Thanks,
Mongo