I wrote AGE.PRG as a UDF back in the days of FoxPro 2.x. It's kind of awkward to return three values from a UDF, so I've been thinking about making an object out of it, with a Calculate method and three return-value methods (GetYears, GetMonths, and GetDays). That way it would be easier to request the result(s) one wants instead of having to parse a string. What do you think of the idea, and would this be of any value to you? If I know somebody else wants it, it'll probably prod me into doing it < g >.
>Rick - I could have used that awhile back. Exact age is not an easy calculation to get right. Here in Peds we usually report ages in years and months when we do statistics, and I spent a whole afternoon getting my function to come out right!
>
>I'll be using yours next time I need one!
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.