PV SORT COLUMN

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

version 2004


PV SORT COLUMN (area; column; order)

ParameterTypeDescription
areaLongint4D View area
columnLongintColumn number
orderLongintSort order

Description

The PV SORT COLUMN command is used to carry out a standard sort, in ascending or descending order, on a column set by the column parameter in the 4D View area.

Sorting a dynamic column produces a synchronized sort of the other columns so that the records always remain in their initial state.

A sort on a static column only sorts that column.

To set the order parameter, use one of the following constants, located in the "PV Header sort" theme:

Constant   Type   Value

pv ascending sort Longint 2

pv descending sort Longint 3

Note: This command can work only if the sort was previously allowed using the PV SET AREA PROPERTY command.

Example

With the following statement, the column will be sorted in ascending order:

   PV SORT COLUMN(area; 2; pv ascending sort)

See Also

PV SET AREA PROPERTY, PV SORT ONE.


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