mm...
so the counting is wrong?

as it correctly assigns the right type to var the counter works incorrectly when it assumes that the result is same type as the values counted.

that my example didn't work like you said it wouldn't... said before tested.
_________________________
!

download KiXnet