One point to bear in mind with function returns is that you need to include the variable type you want to return as a suffix to the function name .. e.g.
Function BLAH() - returns an int
Function BLAH#() - returns a float
Function BLAH.MyType() returns a custom type
Stevie
Function BLAH() - returns an int
Function BLAH#() - returns a float
Function BLAH.MyType() returns a custom type
Stevie