=Relationship(FileRoot(),%INDI%,TEXT,1) works fine until the sex of the person is unknown.
Have a stillborn child born 1929 that no one knows if boy or girl. I cleared the 'Sex:' box and when building a Diagram or Report a male relationship is shown. I expect =Relationship(FileRoot(),%INDI%,TEXT,1) is defaulting to Male as that is the first option in the 'Sex:' menu.
Is there anyway of returning both the Male / Female relationship or no output when the sex is unknown ?
ID:7016
* Relationship to Root
- PeterR
- Megastar
- Posts: 1129
- Joined: 10 Jul 2006 16:55
- Family Historian: V7
- Location: Northumberland, UK
Relationship to Root
I suppose 'child', 'grandchild', 'great grandchild', etc., would work for direct descendants of the root individual, but I'm not aware of a gender-neutral term for niece/nephew.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Relationship to Root
The following would produce no output if the Sex is undefined.
=TextIf( IsEmpty(%INDI.SEX%), ,Relationship(FileRoot(),%INDI%,TEXT,1) )
=TextIf( IsEmpty(%INDI.SEX%), ,Relationship(FileRoot(),%INDI%,TEXT,1) )
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Relationship to Root
Thanks Mike. Spot on as usual [smile]