Mike Yearwood
Toronto, Ontario, Canada
LPARAMETERS tdB,tdD
RETURN INT((tdD-tdB)/365.25)
This doesn't check if the birthdate is lower than the date specified in tdD. If doesn't check if the parameters are date or datetime. You need to make SPEC ifications not SPECK ification <g>.
>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!
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only