There's probably a good reason, but I'm not getting any "given named used" when using a plugin to extract names. Code snippet:
Code: Select all
ptrName = fhNewItemPtr()
ptrName:MoveTo(ptrIndi,"~.NAME")
local givennameused = fhGetItemText(ptrName,'~:_USED')
fhMessageBox('givennameused:='..givennameused)
Name: "Mary Test Jones"
Name used: "Test"
But the value of givennameused is always "". This only appears to be a problem for _USED as the same code works for SURNAME, NICK, NSFX values.
In a Query, %INDI.NAME[1]._USED% works fine.
I wanted to add underlines using:
Code: Select all
presentationname = presentationname:gsub(givennameused,"<ul>"..givennameused.."</ul>")
Thanks in anticipation
Paul