• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

Which is quicker?

Which of these is quicker ?

"Iif" (inline if) or "If.. then... End If" ???
Speed is cruicial in the routine I need them in...
0
lbowers
Asked:
lbowers
1 Solution
 
KJHDI12Commented:
I did some calculations and ran them in 1000000 loops and got this result:

  If then else end if:        1492ms
  Iif                         9500ms

I used the ARTimer control to time it. It's free and you can download it at www.download.com.

Mr. Fixit

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now