The Flags appear thus in the GEDCOM file:
Code: Select all
1 _FLGS
2 __1891_UK_CENSU 1891 UK Census
2 __1871_UK_CENSU 1871 UK Census
Can anyone give me a steer, please?
Code: Select all
1 _FLGS
2 __1891_UK_CENSU 1891 UK Census
2 __1871_UK_CENSU 1871 UK Census
Code: Select all
ptrIndi = fhNewItemPtr()
ptrIndi:MoveToFirstRecord('INDI')
while ptrIndi:IsNotNull() do
local ptrFlag = fhGetItemPtr(ptrIndi,"~._FLGS")
if ptrFlag:IsNotNull() then
ptrFlag:MoveToFirstChildItem(ptrFlag)
while ptrFlag:IsNotNull() do
local strTag = fhGetTag(ptrFlag)
local strText = fhGetDisplayText(ptrFlag)
print( "Tag: ", strTag, "\t Flag: ", strText )
ptrFlag:MoveNext()
end
end
ptrIndi:MoveNext()
end
Code: Select all
Tag: __1891_UK_CENSU Flag: 1891 UK Census: Y
Tag: __1871_UK_CENSU Flag: 1871 UK Census: Y
Code: Select all
ptrFlag:MoveToFirstChildItem(ptrFLGS)
while not ptrFlag:IsNull() do
local strFlagText = fhGetItemText(ptrFlag, "~.")
print(strFlagText.."\n")
ptrFlag:MoveNext()
end