Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Age Calculation
Message
 
 
À
11/08/2000 08:39:45
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00403635
Message ID:
00404331
Vues:
12
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform