Jane, Many, many thanks for your input on this. I have never attempted any "programming" in FH (in fact I do not use it as my main program, but I like some of the charting options it offers). A little further footling produced the code below, which now gives "circa" dates much as I wanted them. The only shortcoming is that if neither a birth date nor death date is known, one still gets a line with the " - " separator. I think I can live with that, but perhaps someone more up to speed than myself can refine my effort to eliminate that. The easiest way to insert the code is to copy and paste it into Notepad and then delete any line breaks the e-mail program has inserted before copying it on into the FH text template. So, for your delectation and delight.......... =CombineText(TextIf(%INDI.BIRT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.BIRT.DATE:YEAR%,,),%INDI.BIRT.DATE:ABBREV4%) ," - ",TextIf(%INDI.DEAT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.DEAT.DATE:YEAR%,,),%INDI.DEAT.DATE:ABBREV4%) ) Hope this helps someone. Regards, John Liddle Backwell, North Somerset - "Where the cider apples grow" -----Original Message----- From: Jane Taubman [mailto:janetaubman@gmail.com] Sent: 27 February 2012 10:18 To: john.wjames@which.net; family-historian-users@rootsweb.com Subject: Re: [FHU] Diagrams - indication of approximate dates If you want to experiment this should show the year for dates marked as Approximate with the c. in front. =TextIf(%INDI.DEAT.DATE:XDATETYPE% = "Approx",CombineText("c. ",%INDI.DEAT.DATE:YEAR%,,),%INDI.DEAT.DATE:ABBREV4%) On 27 February 2012 09:55, John James <john.wjames@which.net> wrote: > Regarding the 'c.1959' formulation, this has been asked a few times in > the past on this mailing list and, to my knowledge, no-one has ever come up with a way of doing it. -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk |www.fhug.org.uk
Try this to eliminate the " - " =TextIf(Exists(%INDI.BIRT.DATE%) or Exists(%INDI.DEAT.DATE%),CombineText(TextIf(%INDI.BIRT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.BIRT.DATE:YEAR%,,),%INDI.BIRT.DATE:ABBREV4%)," - ",TextIf(%INDI.DEAT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.DEAT.DATE:YEAR%,,),%INDI.DEAT.DATE:ABBREV4%),),) What it does is surround your expression with =TextIf(Exists(%INDI.BIRT.DATE%) or Exists(%INDI.DEAT.DATE%),{your expression},) Regards, Mike Tate -----Original Message----- From: family-historian-users-bounces@rootsweb.com [mailto:family-historian-users-bounces@rootsweb.com] On Behalf Of John Liddle Sent: 29 February 2012 20:39 To: family-historian-users@rootsweb.com Subject: Re: [FHU] Diagrams - indication of approximate dates Jane, Many, many thanks for your input on this. I have never attempted any "programming" in FH (in fact I do not use it as my main program, but I like some of the charting options it offers). A little further footling produced the code below, which now gives "circa" dates much as I wanted them. The only shortcoming is that if neither a birth date nor death date is known, one still gets a line with the " - " separator. I think I can live with that, but perhaps someone more up to speed than myself can refine my effort to eliminate that. The easiest way to insert the code is to copy and paste it into Notepad and then delete any line breaks the e-mail program has inserted before copying it on into the FH text template. So, for your delectation and delight.......... =CombineText(TextIf(%INDI.BIRT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.BIRT.DATE:YEAR%,,),%INDI.BIRT.DATE:ABBREV4%) ," - ",TextIf(%INDI.DEAT.DATE:XDATETYPE% = "Approx",CombineText("c.",%INDI.DEAT.DATE:YEAR%,,),%INDI.DEAT.DATE:ABBREV4%) ) Hope this helps someone. Regards, John Liddle Backwell, North Somerset - "Where the cider apples grow" -----Original Message----- From: Jane Taubman [mailto:janetaubman@gmail.com] Sent: 27 February 2012 10:18 To: john.wjames@which.net; family-historian-users@rootsweb.com Subject: Re: [FHU] Diagrams - indication of approximate dates If you want to experiment this should show the year for dates marked as Approximate with the c. in front. =TextIf(%INDI.DEAT.DATE:XDATETYPE% = "Approx",CombineText("c. ",%INDI.DEAT.DATE:YEAR%,,),%INDI.DEAT.DATE:ABBREV4%) On 27 February 2012 09:55, John James <john.wjames@which.net> wrote: > Regarding the 'c.1959' formulation, this has been asked a few times in > the past on this mailing list and, to my knowledge, no-one has ever come up with a way of doing it. -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk |www.fhug.org.uk ------------------------------- To unsubscribe from the list, please send an email to FAMILY-HISTORIAN-USERS-request@rootsweb.com with the word 'unsubscribe' without the quotes in the subject and the body of the message