**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
Re: OR Statement Skips Sixth Line?
Quote:
Originally posted by sthomas
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!!...
I strongly doubt that that what's happening. Can you post your actual code?