PA_BeforeSelection

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

version 2003


PA_BeforeSelection (tableNum) char

ParameterTypeDescription
tableNumshortTable number
Function resultchar1 if Before Selection is reached, else 0

Description

The command PA_BeforeSelection returns 1 if the current record pointer is positioned before the first record of the selection for the Table number tableNum. Otherwise, it returns 0.

PA_BeforeSelection also returns 1 if the selection is empty.

A 4D plug-in would typically call PA_BeforeSelection to detect whether the record pointer had moved to a point before the first record of a selection following a call to PA_PreviousRecord.

WARNING

This routine does not use virtual structure

Example

See PA_PreviousRecord for an example of use.

See Also

PA_EndSelection, PA_PreviousRecord.

Error Handling

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

Current Selections and Records

No change. If PA_BeforeSelection returns 1, there is no current record.


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