> Indeed. But with instances like:
>
> case chrCapital_A ... chrCapital_W :
> Case chrCapital_Y ... chrCapital_Z :
> Case chrSmall_A ... chrSmall_W :
> case chrSmall_Y ... chrSmall_Z :
>
> I'd rather not have to write them all. And isn't iteasier on CPU too? 
> (assuming the compiler writes a single 'if')

Internally, the CodeWarrior compiler treats them the same -- it
already optimizes a continuous range of values, and turns case
statements into a tree of ifs or a lookup table with bounding
comparisons based on what would be more efficient code.

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to