Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Age Calculation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00403635
Message ID:
00404394
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform