As to the select-case being faster than multiple if's because it doesn't perform the other case checks once it hits it's criteria....
Hmmm, hopefully they have updated the code on the select-case, because the original DB1 select-case was rubbish. If I remember rightly on speed checks (it was a long time ago when I wrote them) it was slower than using multiple IFs. As it happens, if you put a label at the end of the select, and got all cases to GOTO the label when they were done, then it was faster than the IFs. Until you did the same to the IFs.
So multiple IF's with GOTO's on the end of them to fake the performance of a SELECT-CASE was the fastest method. I could live with this if they fixed the original problem : ie. it was obviously processing the check on each case, even though the check had been satisfied earlier (the putting a goto on the end of each case to find it ran faster pretty much proves this). I reported this and was told it was tough, and to use the goto on the end of each case line. Sheesh. Never used it again in DB.
If someone has the time though, do some checks in DBP. I haven't unfortuantly

Would be nice to know they have fixed that problem.
Oh, and they did originally ship DB without SELECT-CASE. Came along yonks later thanks to compo. They didn't pick up on all the points we made about case though....
Cheers
Oh, and the funniest Red Dwarf episode was the 2nd one. Where he meets the cat, and the history of the cats is explained. Funny. And has anyone ever seen the photo for the cast of the American pilot episode? Totally amusing, must hunt it down.... safe to say they totally cocked it up, didn't get the idea, and it didn't ever get off the ground. Or did it? Never saw it over here.
I am 99% probably lying in bed right now... so don't blame me for crappy typing
