Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Age Calculation
Message
From
12/08/2000 22:48:28
 
 
To
11/08/2000 08:39:45
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00403635
Message ID:
00404331
Views:
11
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform