Returns an integer as the value of a pointer. Returns nil if the content of the point is not an integer.
iValue = fhGetValueAsInteger(ptr)
ptrf = fhNewItemPtr() ptrf:MoveToFirstRecord('FAM') ptrCount = fhGetItemPtr(ptrf,'~.NCHI') if ptrCount:IsNull() then iChildCount = 0 else iChildCount = fhGetValueAsInteger(ptrCount) end fhMessageBox(fhGetDisplayText(ptrf)..' had '..iChildCount..' children')