Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2242
| From | Stl Mongo <stlmongo@sbcglobal.net> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | A little help |
| Date | 2015-04-05 08:34 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mfrdln$ic3$1@speranza.aioe.org> (permalink) |
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
Back to comp.lang.basic.visual.misc | Previous | Next — Next in thread | Find similar | Unroll thread
A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-05 08:34 -0500
Re: A little help Ron Weiner <rw@domain.com> - 2015-04-05 11:14 -0400
Re: A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-05 12:46 -0500
Re: A little help mike <spamme9@gmail.com> - 2015-04-07 01:06 -0700
Re: A little help Michael Cole <noone@invalid.com> - 2015-04-08 08:11 +1000
Re: A little help Stl Mongo <stlmongo@sbcglobal.net> - 2015-04-07 17:24 -0500
Re: A little help Deanna Earley <dee@earlsoft.co.uk> - 2015-04-08 10:51 +0100
csiph-web