|
![]() |
![]() |
version 2003
PA_OrderBy (tNum; fNum; oDirection)
Parameter | Type | Description | |
tNum | short | → | Table number |
fNum | short | → | Field number |
oDirection | char | → | Ordering direction |
Description
The routine
PA_OrderBy
sorts (reorders) the records of the current selection of table
tNum
for the current process using the field
fNum
. After the sort has been completed, the new first record of the selection becomes the current record.
Set
oDirection
to any value but 0 to order in an ascending direction.
Set
oDirection
to 0 to order in a descending direction.
PA_OrderBy
is a quick way to reorder a selection using only one field as criteria.