Hi Andy,
 
Here's function for you.
 
Best,
 
Tom.
 
 
FUNCTION getAge()
    LPARAMETERS tdDate AS Date, tdBirthDate AS Date
    LOCAL lnRetVal AS Integer

 
    lnRetVal = 0

    lnRetVal = INT((tdDate-tdBirthDate)/365.25)

 
    RETURN lnRetVal
 
ENDFUNC
 
 
 
 
 
 
 
 



> To: [EMAIL PROTECTED]> From: [EMAIL PROTECTED]> Date: Thu, 23 Nov 2006 
> 09:57:36 +0000> Subject: dob to age> > > does anyone have an algorithm to 
> hand for calculating age in years as of> today's date from a date of birth 
> (fox code)> > thanks> > Andrew Davies  MBCS CITP>   - AndyD        8-)#> > > 
> **********************************************************************> > 
> This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed. If 
> you have received this email in error please notify the system manager.> > 
> This footnote also confirms that this email message has been swept by 
> MIMEsweeper for the presence of computer viruses.> > Please contact [EMAIL 
> PROTECTED] with any queries.> > 
> **********************************************************************> > > > 
> _______________________________________________> Post Messages to: 
> [email protected]> Subscription Maintenance: 
> http://leafe.com/mailman/listinfo/profox> OT-free version of this list: 
> http://leafe.com/mailman/listinfo/profoxtech> ** All postings, unless 
> explicitly stated otherwise, are the opinions of the author, and do not 
> constitute legal or medical advice. This statement is added to the messages 
> for those lawyers who are too stupid to see the obvious.> > 

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to