glenn, you seem to have habit of replacing rather than investigating...
looking at the line, there should be easy way to see what causes the error.
and I think it's simply that non-array parameter is passed, thus:
join($sValue,'|',ubound($sValue))

will become:
join("mystring","|",ubound("mystring"))

and yet:
join("mystring","|",-1)

doh, as count, join does not allow negative numbers, that causes the error.
_________________________
!

download KiXnet