How To Calculate a Person's Current AgeLast reviewed: April 30, 1996Article ID: Q124327 |
The information in this article applies to:
To calculate a person's current age, enter the following commands in the Command window:
m.DOB = {12/03/62} m.age = ROUND(((DATE() - m.DOB) / 365.25),0) ? m.ageNOTES: The value 365.25 accounts for leap years, and the question mark tells FoxPro to print the age to the screen. You may need to minimize open windows to see the printed value.
|
Additional reference words: VFoxWin 3.00 FoxWin FoxDos FoxMac 2.60a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |