hi
theres a way to sort great and lower in a select case??
like this:
HELP!Code:
Select Case x
case >= 1 and <= 5
case > 6 and < 10
end select
Printable View
hi
theres a way to sort great and lower in a select case??
like this:
HELP!Code:
Select Case x
case >= 1 and <= 5
case > 6 and < 10
end select
VB Code:
Select Case x Case 1 To 5 ... Case 7 To 9 ... End Select
but if:
where my program will entry?Code:Select Case x
Case 1 To 5
...
Case 5 To 9
...
End Select
The first Case statement that evaluates to true is always used.
So if X were equal to 5 the code in Case 1 to 5 would be used - never the code in Case 5 to 9.