hmm...
actually, if you check for the vartype, I'd say it returns boolean TRUE.
so, I would say, if the bug is somewhere, it's in the sub routine that is responsible of translating boolean TRUE to 1 and FALSE to 0.
_________________________
!

download KiXnet