* Including age (in years) in a diagram box

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
londonscorpion
Diamond
Posts: 66
Joined: 19 Oct 2010 13:50
Family Historian: V6.2

Including age (in years) in a diagram box

Post by londonscorpion » 25 Nov 2018 12:07

Is it possible to report the age of an individual at the date of an event into a diagram text box . This might appear as e.g. "Died 1787 aged 42". I cannot find any variable which allows this.

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Including age (in years) in a diagram box

Post by Jane » 25 Nov 2018 13:36

Do you want the computed age or the recorded age?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
londonscorpion
Diamond
Posts: 66
Joined: 19 Oct 2010 13:50
Family Historian: V6.2

Re: Including age (in years) in a diagram box

Post by londonscorpion » 25 Nov 2018 13:38

The computed age if no recorded age is there.

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Including age (in years) in a diagram box

Post by Jane » 25 Nov 2018 16:43

Have you tried the standard
%INDI.DEAT[1+].DATE:AGE_AT%

Remember you can pick this up by simply adding a new Death line and selecting the Age option in the prompt.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Including age (in years) in a diagram box

Post by tatewise » 25 Nov 2018 17:42

Are you comfortable with customising Diagram Text Schemes via the Diagram >Options > Text tab?
If not, then that advice form Jane may not mean much, so please ask for more guidance.

It may be better to use DEAT[1] instead of DEAT[1+] looping index, depending the rest of the Template.

FYI:
Explicitly recorded Age use the AGE tag %INDI.DEAT.AGE%
There is also the =AgeAt(...) function as an alternative to the :AGE_AT qualifier.
e.g. =AgeAt( %INDI%, %INDI.DEAT.DATE% )
The biggest difference is that the :AGE_AT qualifier only works for simple single Dates, whereas the =AgeAt(...) function also works for Date Ranges/Periods such as Between 1 Feb 1900 and 20 Mar 1901 or Q1 1900.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply