Text Schemes in Diagrams
Posted: 13 Sep 2014 16:10
Hi,
I'm having my first serious attempt at customising the text in diagrams...and have been scratching my head for the past couple of hours.
The following is supposed to:
1) Output "Born: " if there is any birth data - either date or place
2) Output the birth date
3) Output ", " IF there is a birth date AND and birth place, otherwise output ""
4) Output birth place
5) Output "."
=ExistsText(%INDI.BIRT%,"Born: ")%INDI.BIRT.DATE:COMPACT%=TextIf(Exists(%INDI.BIRT.DATE%) and Exists(%INDI.BIRT.PLAC%),", ")%INDI.BIRT.PLAC:SHORT%.
It sort of works but, if there is no date it is determined to put a ", " before the place.
In addition, I also want "." to appear after the date if there is no place recorded...
I'm also wanting this for baptism, marriage, death and burial - but this one example should suffice.
Thanks for taking the time,
Kind regards,
William
I'm having my first serious attempt at customising the text in diagrams...and have been scratching my head for the past couple of hours.
The following is supposed to:
1) Output "Born: " if there is any birth data - either date or place
2) Output the birth date
3) Output ", " IF there is a birth date AND and birth place, otherwise output ""
4) Output birth place
5) Output "."
=ExistsText(%INDI.BIRT%,"Born: ")%INDI.BIRT.DATE:COMPACT%=TextIf(Exists(%INDI.BIRT.DATE%) and Exists(%INDI.BIRT.PLAC%),", ")%INDI.BIRT.PLAC:SHORT%.
It sort of works but, if there is no date it is determined to put a ", " before the place.
In addition, I also want "." to appear after the date if there is no place recorded...
I'm also wanting this for baptism, marriage, death and burial - but this one example should suffice.
Thanks for taking the time,
Kind regards,
William