Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Age Calculation
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00403635
Message ID:
00404394
Views:
11
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform