General information
Category:
Coding, syntax & commands
David
I have never tried to develop a function that returns more than one value but I can't see why this would be a problem.
Like for rate of return studies, you can get 2 different rates of return that are valid.
So your function would have to have a way of ending after all reasonable calculations were complete and say generating a value of a and b and maybe c as acceptable answers.
The function will return one value called "value" but you can always pick up the multiple values of a, b and c if they were initialized ahead of the funtion. You should probably initialize the values as space(1) i.e. a character when you would be looking for a number in the answers. If a,b and c have numerical answers then you know they were generated by the funtion.
As I say, I have not actually done this, but I see no reason why it wouldn't work.
Mike Smith
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only