KSH Functions String return

Hy everybody

I'm trying to write a function like

function(){
final=$1
return $final
}

but I get following error:
"return: bad non-numeric arg '[content of $final]'"

what shall I do? Isn't it possible to return strings?:confused:

thanks
lucae

Print the string, and call the function with backticks. Return codes (what you can pass back with exit or return) are always numeric, in the range 0 to 255.

value=`function "fnordness"`

It works, thanks a lot!

lucae from Switzerland