Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding puzzle 2
Message
 
À
04/06/2002 14:32:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00664570
Message ID:
00664663
Vues:
19
>>Ok, that 'puzzle' from Hilmar was far too easy (took me 10 seconds, ok .. 30).
>>
>>Here's a nice contest. Who can write the shortest function (using native vfp functions/commands) that returns a person's age. Input is the birthday and the current date. The winner will get 3 points from me!
>>
>
>Here is Jim Booth's contribution, from Re: Reliably getting age from DOB and DATE() Thread #586710 Message #586842, where tdb is birthday, and tdd is current date:
>
>
>? floor(INT((VAL(DTOS(tdd))-VAL(DTOS(tdb))))/10000)
Steve;

Off topic – what me be off topic?

I am waiting for someone to add this to the VFP 8.0 wish list and to have an argument over perhaps the use of a verb, pronoun, or which toothpaste you use. Seems like we have had a bit of argument as of late and sometimes the reasoning is beyond me. :)

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform