Item Pointer

IsNull

Description

Allows a pointer to be tested for Null.  Is often used to check for the end of a list of data items.

Syntax

bIsNull = ptr:IsNull()

Parameters

None

Return Value

bIsNull
boolean: True is pointer is Null, False if pointer points to a data item.

Remarks

Example: Loop all individuals in a project.
pi = fhNewItemPtr()    -- declare pointer
pi:MoveToFirstRecord('INDI')  -- set pi to to the first Individual record
while not pi:IsNull() do
  -- Process INDI data
  pi:MoveNext()
end