* Diagram Text Scheme

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
User avatar
normandowns
Gold
Posts: 22
Joined: 26 Apr 2003 00:04
Family Historian: V7

Diagram Text Scheme

Post by normandowns » 29 Dec 2014 01:22

Back in July 2013, Jane kindly provided me with this information for my diagram text scheme, so that if a birth occurred in Scotland, England, or Wales, only the short name would be displayed, otherwise the long one. The idea was that for a town in this country, only the town name would be sufficient to identify it, but for a town in another country, more detail would be shown.
Something like this should work

=ExistsText(%INDI.BIRT[1+]%,"Born:") %INDI.BIRT[1+].DATE:COMPACT% in
=TextIf(IsTrue(ContainsText(%INDI.BIRT[1+].PLAC%,"England",STD) or
ContainsText(%INDI.BIRT[1+].PLAC%,"Scotland",STD) or
ContainsText(%INDI.BIRT[1+].PLAC%,"Wales",STD)),%INDI.BIRT[1+].PLAC:SHORT%,%INDI.BIRT[1+].PLAC:TIDY%)
Unfortunately this does not seem to work in v6. The full place name is shown regardless.

Can someone help me to understand why, and hopefully get it working again?

Regards,
Norman

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

Re: Diagram Text Scheme

Post by Jane » 29 Dec 2014 09:49

There is a small bug in the contains text function, which I have reported to Calico, so hopefully it should be fixed in the next update
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
normandowns
Gold
Posts: 22
Joined: 26 Apr 2003 00:04
Family Historian: V7

Re: Diagram Text Scheme

Post by normandowns » 29 Dec 2014 10:28

Thanks for that Jane. I can stop scratching my head wondering now.

Post Reply