Alex,
That makes sense. I think I'll make the string a property too, that way you can access o.AgeString as well as the other three, and use whatever's most convenient for any particular application. Thanks for the ideas.
-Rick
>Hi Rick,
>
>Why not just return a string (YYYMMDD)?
>
>And if going the OOP route, why not make years, months, and days properties of the object?
>
>o = createobject("age")
>o.dob = ctod("9/15/64")
>o.calculate()
>? o.years
>? o.months
>? o.days
>
>Instead of calling three methods just call one.
>
>Alex
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.