Get Next Error

bResult = btgetnext(ptrMyFile,ROOT,mykey,myrecord);

if (bResult == 1)
    { End of File Processing }
else if (bResult > zero)
    { error processing }