My attempt here is based on the FH plugin Help example Find Date Phrases.
It works, BUT, only does 1 at a time.
I did have a version using ptrItem:MoveToFirstRecord(strType) instead of strTypeDesc which did 2 at a time??
Code: Select all
tblTypes = {'INDI','FAM'} -- Scan both Family and Individual Record Types
ptrItem = fhNewItemPtr()
for iType,strTypeDesc in ipairs(tblTypes) do
ptrItem:MoveToFirstRecord(strTypeDesc)
while ptrItem:IsNotNull() do
strType = fhGetTag(ptrItem)
if strType == 'ADDR' then -- Search items until ADDR field found
fhDeleteItem(ptrItem)
end
ptrItem:MoveNextSpecial()
end
end