* Twins

Older V4 Queries please post for any version in the General Forum
Locked
avatar
janefrances
Famous
Posts: 201
Joined: 26 Jan 2004 15:44
Family Historian: V6.2
Location: Herts

Twins

Post by janefrances »

I have several sets of twins in my family tree and would like to see them displayed in my diagrams, I have had a look at the family historian help and it looks way to complicated for me to use expressions. Is there an easier way just to show twins?

Thanks
Jane

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

Twins

Post by Jane »

Just use the expression here
http://www.fhug.org.uk/wiki/doku.php?id ... find_twins

put it all on one line and add it to the Diagram Boxes as an expression.
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
johnmorrisoniom
Megastar
Posts: 904
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

Twins

Post by johnmorrisoniom »

Mike Tate came up with this one as well which works well for me

Code: Select all

=IsTrue((Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(NextSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2) 
or (Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(PrevSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2))
User avatar
tatewise
Megastar
Posts: 28451
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Twins

Post by tatewise »

Basically the Expression obtains the Difference between the Birth Date Day Number of the Individual and Next Sibling, as well the Birth Date Day Number of the Individual and Previous Sibling.

If they differ by less that 2 days then the result is true.

2 days is used to allow for multiple births across midnight.

This Expression not only detects Twins but also any other multiple birth - triplets, quads, etc.

The beauty of Expressions to Condition Diagram Boxes is that once set up they automatically work for ever.
No more need to keep setting Flags on Individuals.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
janefrances
Famous
Posts: 201
Joined: 26 Jan 2004 15:44
Family Historian: V6.2
Location: Herts

Twins

Post by janefrances »

Was getting on really well with the twin icons. When it came to selecting one I thought I would use one of my own.

However, this didn't come out too well, and now I can't navigate back to the programs icon folder as I cannot find it anywhere. Feel a right twit!

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

Twins

Post by tatewise »

You don't say, but I am guessing you mean in the Diagram Options, on the Boxes tab, in the Box Features window, where you << Select an Icon.

You also don't say which version of Windows you are using, so I will cover Windows 8, 7, Vista as well as Windows XP which is different.

In the Select Icon sub-window, click on Computer and Open the C: drive (or whatever drive Windows is installed on).

On Windows 8, 7, Vista, scroll down and Open the ProgramData folder (NOT Program Files).
On Windows XP, scroll down and Open the Documents and Settings and All Users and Application Data folders in turn.

Then Open the Calico Pie and Family Historian and Icons folders in turn.

This is where FH keeps its icon files.
You would be advised to add your icons to this folder too.

There are some Twins and Triplets icons in FHUG Downloads ~ Diagram Icons.
See Brian's Icons and Jane's Census & Certificate Icons and Wulliam's Icons.
Download them to the FH Icons folder, or a sub-folder within it.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
janefrances
Famous
Posts: 201
Joined: 26 Jan 2004 15:44
Family Historian: V6.2
Location: Herts

Twins

Post by janefrances »

Thank you for your prompt help. All sorted.[smile]
avatar
janefrances
Famous
Posts: 201
Joined: 26 Jan 2004 15:44
Family Historian: V6.2
Location: Herts

Twins

Post by janefrances »

Thank you for your prompt help. All sorted.[smile]
Locked