fhGetDisplayText - Anomaly or my error
Posted: 24 Oct 2022 17:32
I am having a problem with my LUA learning effort I have the following script statements:
I am using the fh plugin testing tool
At the first fhMessageBox I get this:
strPointerDescription global "Born January 1, 1945 in Hebron, Connecticut"
At the second fhMessageBox I get this:
strPointerDescription global ""
What am I doing wrong?
I got frustrated and actually copied the code from:
https://www.family-historian.co.uk/help/fh7-plugins/
FamilyHistorian API
Function Index
fhGeTDisplayText
Code: Select all
if strType == 'BIRT' then
strPointerDescription = fhGetDisplayText(pi)
fhMessageBox(strPointerDescription)
strPointerDescription = fhGetDisplayText(pi,'~.BIRT.PLAC', 'min')
fhMessageBox(strPointerDescription)
endAt the first fhMessageBox I get this:
strPointerDescription global "Born January 1, 1945 in Hebron, Connecticut"
At the second fhMessageBox I get this:
strPointerDescription global ""
What am I doing wrong?
I got frustrated and actually copied the code from:
https://www.family-historian.co.uk/help/fh7-plugins/
FamilyHistorian API
Function Index
fhGeTDisplayText