function HbOrdKeyNo: Integer;
Description
Get the logical record number of the current record. Take active scopes into account (records falling within the active scope range are numbered from 1 to N).