Another option is to use output parameters. Pass in parameters by reference and populate them inside the function.