[This relates to https://groups.io/g/family-historian/message/7112 - Highlight or Colour Facts on the property box]
Following Mike's code above I can check if the flag already exists, so skip to next INDI.
I can create the tag OK, but can't work out how to set the value.
Code: Select all
--Create a Flag tag on the BIRT
--ptrFlag2 is a pointer to the BIRT event
local ptrFlagNew = fhCreateItem("_FLGS", ptrFlag2) -- This works fine and creates the tag
fhSetValueAsText(ptrFlagNew, "Preferred") -- This failsAny help would be much appreciated