functions

fhGetValueAsAge

Description

Returns the value of an item pointer as an age object. Returns nil if the pointer contents are not an age

Minimum FH Version

7

Syntax

ag = fhGetValueAsAge(ptr)

Parameters

ptr
item pointer

Returns

ag
Age Object

Example

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