Nested loops, Timers, DoPause Sub, Sleep API,
etc.
- Show what the output of the following code would be?
- How long does it take the program to produce all of its
output? (Given that the Timer1.Interval property is
1000)
- Explain to a beginning Visual Basic student a strategy for how to
answer this question in a way that any Visual Basic student with a
few weeks of experience could determine the what the correct
output is and what it would look like.
Group exercise answers
and elaborations (NOT YET AVAILABLE).
Assuming that the Print statement and Timers and Static
variables have been covered adequately enough so all of
the individual techniques and objects are understood in
isolation.
Click here to see the correct solution to
question #1,
keeping in mind that the important thing is the
method of arriving at the solution (question #3).
See both code and animation
output on same web page.
The DoPause Sub approach to the
problem, with nested For Next loops is NOT YET AVAILABLE.
How many seconds since midnight is it on your PC?
The Windows API and API Sleep()
function
solution is ready. It uses nested For Next loops.