Returns the value of an item pointer as an age object. Returns nil if the pointer contents are not an age
7
ag = fhGetValueAsAge(ptr)
pi = fhNewItemPtr() pi:MoveToFirstRecord('INDI') -- Get first individual record pi = fhGetItemPtr(pi,'~.DEAT.AGE') -- Move pointer to the first Death Fact Date ag = fhGetValueAsAge(pi) -- Get the Age Object