|
![]() |
![]() |
version 2003
PA_OrderByDialog (defaultTable)
Parameter | Type | Description | |
defaultTable | short | → | Default table |
Description
The routine
PA_OrderByDialog
displays the standard Order By Dialog for the
defaultTable
. If the user fills the search area and clicks
OK
, 4D sorts the current selection.
As the routine does not return any information on the sort result, the plug-in should check the "OK" global variable (see the example given in the "
Building a query with the API
" chapter).
This is like the
ORDER BY
command when it is used with just one parameter -- the table. See the 4th Dimension Language reference for more information.
Example
Display the Order By dialog for table 1, saving the selection before the sort.
PA_CopyNamedSelection(1, "\pTheSel");
PA_OrderBy(1);
if(!GetOK())
PA_UseNamedSelection("\pTheSel");
PA_ClearNamedSelection("\pTheSel");
See Also
ORDER BY .
Error Handling
always returns
eER_NoErr