* How to use the last place part in a query

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
rwcrooks
Gold
Posts: 24
Joined: 19 Jul 2021 13:53
Family Historian: V7
Location: South Carolina, USA

How to use the last place part in a query

Post by rwcrooks »

I can see from the examples how to use the 1st, 2nd, etc part of the place in an expression, but is there a way to use the last part of a place. Some of my places have more parts than others. This would be useful for displaying a country icon for births and deaths on diagrams.
Researching since 1976 (Crooks, Barron, Hutchens, Davidson from Scotland, Cornwall, Ireland and Quebec)
Converting from Roots Magic.
avatar
jelv
Megastar
Posts: 552
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: How to use the last place part in a query

Post by jelv »

Use textpart with parameter 2 set to -1
John Elvin
User avatar
BillH
Megastar
Posts: 2241
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: How to use the last place part in a query

Post by BillH »

User avatar
rwcrooks
Gold
Posts: 24
Joined: 19 Jul 2021 13:53
Family Historian: V7
Location: South Carolina, USA

Re: How to use the last place part in a query

Post by rwcrooks »

Thanks. That should do the trick. That’s hidden fairly deeply.
Researching since 1976 (Crooks, Barron, Hutchens, Davidson from Scotland, Cornwall, Ireland and Quebec)
Converting from Roots Magic.
User avatar
BillH
Megastar
Posts: 2241
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: How to use the last place part in a query

Post by BillH »

I just searched for "textpart" and it was the first result.

Bill
Post Reply