Results 1 to 17 of 17

Thread: Timer As A Loop Ender?!?!?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    127

    Resolved Timer As A Loop Ender?!?!?

    Hey,

    For Ill tell you what this code is trying to do...
    It counts to as much as it can, as fast as it can all adding up to n the variable. But when the Timer's Interval = 10000 it should end.
    Any way to do this? btw... I will make the timer's action do something else later, just for now i wrote that
    Thanks I'm not very good at loops, my loops keep making my vb crash
    gl!

    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim n As String
    3.     Let n = 1
    4. Do Until Interval = 10000    
    5.     Picture1.Cls
    6.     Picture1.Print n + 1
    7. loop
    8. End Sub
    9.  
    10.  
    11. Private Sub Timer1_Timer()
    12.     Unload Form1
    13. End Sub
    Last edited by Brin; Apr 18th, 2005 at 06:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width