in reply to Re: Returning string and numerical data types from subroutines
in thread Returning string and numerical data types from subroutines

It seems the OP is already aware of dualvar.