Results 1 to 3 of 3

Thread: Elementary Question about a counter

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    6

    Elementary Question about a counter

    Hello all.

    What I'm trying to do is have a program read an interger from a Textbox, and then perform a function that many times.

    Essentially like a for or while loop in Java or C++

    Could anyone help me out? This is quite frustrating for someone who has background only in Java, and is used to simply throwing the stuff into a for loop >_<

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Elementary Question about a counter

    vb Code:
    1. for x as integer = 1 to cint(textbox1.text)
    2.     'perform function
    3. next

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Elementary Question about a counter

    Quote Originally Posted by DjSanguine View Post
    This is quite frustrating for someone who has background only in Java, and is used to simply throwing the stuff into a for loop >_<
    I can see how this information would have been hard to find:

    http://www.google.com.au/search?q=fo...ient=firefox-a
    http://social.msdn.microsoft.com/Sea...ultsLang=en-AU
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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