Item Pointer

IsNotNull

Description

IsNotNull is provided for convenience only.  You could equally test for a negative result returned by the IsNull method.  It is frequently used in looping conditions.

Syntax

bIsNotNull = ptr:IsNotNull()

Parameters

None

Return Value

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

Remarks

Example: Loop all individuals in a project.
pi = fhNewItemPtr()    -- declare pointer
pi:MoveToFirstRecord('SOUR') -- set pi to to the first Source record
while  pi:IsNotNull() do
  -- Process source data
  pi:MoveNext()
end