PA_SelectedRecordNumber


version 2003


PA_SelectedRecordNumber (tableNum) → long

Parameter Type Description
tableNum short Table number
Function result long Number of current record in the selection

Description

The command PA_SelectedRecordNumber returns the position of the current record within the current selection of table number tableNum .

If the selection is empty, or if there is no current record, it returns 0 (zero).

WARNING

This routine does not use virtual structure.

Example

Walking through the selection without losing the initial current record

   void NavigateButKeepRecord (short tableNum)
   {
      long   currentRecord = PA_SelectedRecordNumber();
   // Manipulate the selection
      DoSomethingWithTheSelection(tableNum);// see PA_NextRecord
   // return to the selected record
      PA_GoToSelectedRecordNumber(tableNum, currentRecord);
   }

See Also

PA_GoToSelectedRecord , PA_RecordsInSelection .

Error Handling

Use PA_GetLastError to see if an error occurred (invalid table number)