Results 1 to 8 of 8

Thread: Hello, How Are You? app RESOLVED

  1. #1

    Thread Starter
    Banned
    Join Date
    Mar 2005
    Posts
    26

    Resolved Hello, How Are You? app RESOLVED

    Private Sub Command1_Click()
    End
    End Sub

    Private Sub Command2_Click()
    Cls
    For x = 1 To 5
    Print "Hello, How Are You?"
    Next x
    End Sub
    Last edited by dos5731; Mar 26th, 2005 at 03:33 AM.

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Hello, How Are You? app

    Whats your question?
    I dont really understand this:
    For x = 1 To 5
    Next x

    You dont need that at all

    so:

    Private Sub Command1_Click()
    End
    End Sub

    Private Sub Command2_Click()
    Cls
    Print "Hello, How Are You?"
    End Sub

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Hello, How Are You? app

    it prints it 5 times

  4. #4
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Hello, How Are You? app

    Quote Originally Posted by dglienna
    it prints it 5 times
    Yes it prints "Hello, How Are You?" 5 times but you can only see one line of "Hello, How Are You?" becuase of the "Cls"
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  5. #5

    Thread Starter
    Banned
    Join Date
    Mar 2005
    Posts
    26

    Re: Hello, How Are You? app RESOLVED

    post your code and I will fix.

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Hello, How Are You? app

    Quote Originally Posted by Simply Me
    Yes it prints "Hello, How Are You?" 5 times but you can only see one line of "Hello, How Are You?" becuase of the "Cls"
    The cls is outside of the loop. Why don't you paste the code into a new project and try it. You may learn something.

  7. #7
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Hello, How Are You? app

    Quote Originally Posted by dglienna
    The cls is outside of the loop. Why don't you paste the code into a new project and try it. You may learn something.
    Sorry mislook it.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  8. #8

    Thread Starter
    Banned
    Join Date
    Mar 2005
    Posts
    26

    Re: Hello, How Are You? app RESOLVED

    Ok

    Thank You For Test It For Me!!!

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