I'm trying to use
strHowRelated =fhCallBuiltInFunction("Relationship", ptrInd1, ptrInd2, "TEXT")
as per the example in Plugin Help
But instead of ptrInd1 I would like to reference the FileRoot
I tried the obvious:
strHowRelated =fhCallBuiltInFunction("Relationship", FileRoot(), ptrInd2, "TEXT")
Unfortunately it wants a pointer to the File Root person, which is understandable.
I've searched the Plugin Help and this forum but can't find a way of getting a pointer for FileRoot.
Does anyone have any suggestions?
* FileRoot() in a Plugin
-
quarlton
- Famous
- Posts: 150
- Joined: 26 Feb 2004 13:07
- Family Historian: V7
- Location: Lincolnshire
- Contact:
FileRoot() in a Plugin
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs
- tatewise
- Megastar
- Posts: 27078
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: FileRoot() in a Plugin
There is no plugin API for FileRoot, so I think you need to use the fhCallBuiltInFunction("FileRoot")
e.g.
strHowRelated = fhCallBuiltInFunction( "Relationship", fhCallBuiltInFunction("FileRoot"), ptrIndi, "TEXT")
e.g.
strHowRelated = fhCallBuiltInFunction( "Relationship", fhCallBuiltInFunction("FileRoot"), ptrIndi, "TEXT")
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
quarlton
- Famous
- Posts: 150
- Joined: 26 Feb 2004 13:07
- Family Historian: V7
- Location: Lincolnshire
- Contact:
Re: FileRoot() in a Plugin
Thanks Mike,
I hadn't picked up that you could use FileRoot() as a function in its own right. The examples all tend to show as part of another function.
As usual your example worked a treat.
Cheers
I hadn't picked up that you could use FileRoot() as a function in its own right. The examples all tend to show as part of another function.
As usual your example worked a treat.
Cheers
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs