PA_SelectedRecordNumber

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_SelectedRecordNumber (tableNum) long

ParameterTypeDescription
tableNumshortTable number
Function resultlongNumber 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)


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next