* How to get the fact label

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
shoshk
Famous
Posts: 242
Joined: 13 May 2015 16:28
Family Historian: V7
Location: Mitzpe Jericho, Israel

How to get the fact label

Post by shoshk » 03 Jun 2015 17:30

This feels like a really stupid question -- how do I get the fact label (not tag) programatically?

Thanks,

Shoshana
Shosh Kalson

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: How to get the fact label

Post by tatewise » 03 Jun 2015 21:30

Welcome to the FHUG.

You need to use the LUA API fhCallBuiltInFunction to call the FH =FactLabel function with a Fact pointer parameter.

Note that fhGetDisplayText and fhGetItemText will include the Fact Label for Fact items.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
shoshk
Famous
Posts: 242
Joined: 13 May 2015 16:28
Family Historian: V7
Location: Mitzpe Jericho, Israel

Re: How to get the fact label

Post by shoshk » 04 Jun 2015 01:45

Thank you
Shosh Kalson

Post Reply