09-10-2008, 10:37 PM
Yeah...
Well I found that Select Case was faster than 2 If statements. It takes some time to open up, but that's where all the speed really takes place...
Select Case Whatever
Case 1
Case 2
End Select
Is faster than
If Whatever = 1 Then
If Whatever= 2 Then
But if you just used 1 case then it wouldn't be faster.
Well I found that Select Case was faster than 2 If statements. It takes some time to open up, but that's where all the speed really takes place...
Select Case Whatever
Case 1
Case 2
End Select
Is faster than
If Whatever = 1 Then
If Whatever= 2 Then
But if you just used 1 case then it wouldn't be faster.