Results 1 to 3 of 3

Thread: Loop?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006


    How do you Loop a start and a stop buttone?

    Private Sub Command1_Click()
    Loop <---------------------------------------------
    a = FileDateTime("C:\Windows")
    If a = Text1 Then
    Label1 = "No Change"
    Label1 = "File Change"
    End If
    Loop if command2 <> True? <------------------------ or not pressed
    End Sub

    This code needs to run till the stop buttone is pressed

  2. #2
    Lively Member
    Join Date
    Apr 2006

    Re: Loop?

    You should learn vb before posting.

    Use the "for" construct such as:

    For i=0 to whatever


    Edit, never mind you need a Do While:
    Do While something = True


  3. #3
    Frenzied Member
    Join Date
    Aug 2005

    Re: Loop?

    Triple access:

    Not sure what Solinent meant by "You should learn vb before posting."

    I always thought the purpose of VB Forum was to help people learn.

    I have learned a lot since coming here and I have helped a lot of other to learn also. I think that is the true spirit of VB Forum, so keep posting your questions.

    Good Luck

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