Yet another nickle bug! int x = 0; x == 0 ? x = 1 : x = 2 is evaluated as (x == 0 ? x) = (1 : x = 2) so it must be typed as x == 0 ? (x = 1) : (x = 2). _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus