Results 1 to 3 of 3

Thread: Loop and date input help request

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2014

    Loop and date input help request

    Hi Guys,

    I am new to programming and I have a question, if you could help me.

    I have a basic program with an input text box and a go button , the user have to input the week he want to run the program:

    Ex: 10 and press ok , then the program is doing his job

    What I want to change is that when he puts 10-15 , this program runs all the weeks from 10 to 15.

    Can you guys show me some loop example where

    weekFrom is taking the input before the "-" and weekTo is taking the one after the "-"

    Please let me know if I have to be more specific.


  2. #2
    Join Date
    Feb 2012
    West Virginia

    Re: Loop and date input help request

    Have a look at the Split() function

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Beside Waldo

    Re: Loop and date input help request

    Quote Originally Posted by DataMiser View Post
    Have a look at the Split() function
    And to piggyback... once you parse the start/stop week, use a simple For:Next loop, i.e., For week=start to stop
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online

    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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