>Hi Cetin,
>
>I wonder when could ACLASS() return an empty (or no) array?
>If the second parameter passed is no object, ACLASS throws an error,
>if the second parameter passed is an object, it will have at least a baseclass, therefore one element minimum. That it is an object is already tested.
>
>It's personal taste, I find David's function version better readable. Perhaps your's would be if adding one or two comments and definitions for the constants you pass to ASCAN. The performance issue of returning a result of an expression without first storing to a variable should be unimportant here. On the other hand that could be better named to eg llIsFamily.
>
>Bye, Olaf.
I didn't say it might return an empty or no array. I don't know a case where it does. Even with activex you get a return value > 0 (but not something very usefull for this).
As you said it's personal taste. To me edited version is 'readable at a glance and self exlanatory'. You find llIsFamily better and that's kind of redundancy for me:) 'Is' already denotes a boolean check IMHO and lIsFamily or IsFamily looks better if ever need be.
Cetin