If..Elseif vs. Select case 
Author Message
 If..Elseif vs. Select case

        Ok I've noticed people seem to disagree with me on the If Else if .. being
faster, l said that because in an abstract titled "Visual Basic, Visual
Basic for Application, and Microsoft Access Basic: Optimizing Basic
Performance" by Kenneth Lassesen of the Microsoft Developer Network
Technology Group. He wrote this while discussing a table that showed VB3
having faster times If..Elseif times then Select Case.

        "The If..Elseif structure is the preferred method, especially if the
programmer indented for readability. Select Case performance is an
acceptable alternative, and it will improve code clarity significantly"

        I would think that in VB4 and VB5 the Select Case IS faster, and that's
where I am wrong. I never would have said that statement so factually if I
had remembered that this abstract was only talking about VB3.

        Sorry to those I have misinformed.

Jon Clegg

Tue, 23 Nov 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Select Case Vs If - ElseIf

2. VBScript Select Case vs VB Select Case

3. Select case/if then elseif

4. Academic Question - Select Case vs. If ElseIf - which is better

5. Case Select vs If then Else

6. "select...case", multiples cases not possible ?

7. Select Case and Case 0 To 9

8. Select case ... OR If...Elseif... ??

9. select * vs select fields

10. IF vs Case ?

11. If vs. Case

12. IF...THEN Vs. CASE Statements


Powered by phpBB® Forum Software