functions

fhIsFact

Description

Returns trueif the item is either an event item or attribute item. See also fhIsEvent and fhIsAttribute.

Syntax

bResult = fhIsFact(ptr)

Parameters

ptr
item pointer

Returns

bResult
true if item pointed to is a fact

Example

Reads the first individual on the file and puts up a message box for each fact.

pi = fhNewItemPtr()
pi:MoveToFirstRecord('INDI')
pi:MoveToFirstChildItem(pi)
while pi:IsNotNull() do
    if fhIsFact(pi) then
        fhMessageBox('Item '..fhGetTag(pi)..' exists and is a fact')
    end
    pi:MoveNext()
end