Results 1 to 11 of 11

Thread: **RESOLVED** OR Statement Skips Sixth Line?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    95

    **RESOLVED** OR Statement Skips Sixth Line?

    I ran into this scenerio:

    If s = 1 OR _
    s = 2 OR _
    s = 3 OR _
    s = 4 OR _
    s = 5 OR _
    s = 6 OR _
    s = 7 Then

    VB6 SP5 seems to skip the s = 6 statement. If you move value around like so:

    If s = 1 OR _
    s = 2 OR _
    s = 3 OR _
    s = 4 OR _
    s = 6 OR _
    s = 5 OR _
    s = 7 Then


    It skips the 5. VB does not look at the 6th OR Position!!


    Is there a better way to write a statement than all the OR's.

    Thanks
    Last edited by sthomas; Oct 22nd, 2003 at 12:10 PM.

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