Results 1 to 3 of 3

Thread: Code on more than one line

  1. #1

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Code on more than one line

    Hello Everyone:

    I am trying to make a long line of code apear on more then one line.

    How do I make this:

    Do Until Counter1 >= Wash1

    Into this:

    Do Until Counter1
    >= Wash1

    It seems like I did it before but cant remember how I did it?

    Thanks

    Art
    SLEEP: A Totally Inadequate Substation For Caffeine!

  2. #2
    Junior Member
    Join Date
    Dec 2009
    Posts
    17

    Re: Code on more than one line

    I think you can use the underscore character: "_"

    Code:
    Do Until Counter1 _
    >= Wash1

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

    Re: Code on more than one line

    Code:
    Do Until Counter1 _
    >= Wash1
    Note that the underscore is the line continuation character but it must be preceded by a space to be interpreted as such.
    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