Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

VS 2008 Struggling with if...then and logical operator

$
0
0
Hi,
I have two calculated values for which I wrote messages:

If value1 < 0 orelse value2 < 0 then
Message1.show
end if

If value1 > 1000 orelse value2 > 1000 then
Message2.show
end if

This works fine.

But it happens that one value is < 0 and the other > 1000 in the same time,
and the two messages pop up.

In this latter case I want a third Message to show up, overriding the two others.

I tried every possibility I know without success.

If you please help me.

Viewing all articles
Browse latest Browse all 42225

Trending Articles