Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's quicker???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00709237
Message ID:
00709244
Views:
15
>if a = 'a' or a = 'b' or a = 'c'
>
>- OR -
>
>if inlist(a,'a','b','c')
>
>Which is quicker and/or better programming? Just in case, I'm maintaining in 2.6.
>
Sunshine,

I'd guess they're probably about the same. Unless you're doing a large number of iterations (1,000,000+) the difference probably isn't worth worrying about. However, simply because I think that the latter would be easier to maintain, I'd go with it.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform