|
|
|
|
|
- Use conditions
- Canceling the sort
- Sort
- Looper bound to a data source and using a programmed iteration
LooperSort (Function) In french: ZoneRépétéeTrie Allows you to: - Sort a Looper control according to one or more attributes.
- Sort a Looper control on all its attributes.
- Cancel a sort that was performed beforehand (which means ignore the sort).
SWITCH SEL_SELECT1
CASE 1: LooperSort("NOM")
CASE 2: LooperSort("SOCIETE")
CASE 3: LooperSort("VILLE")
END
LooperSort("NOM" + TAB + "-DATE")
LooperSort("ZR_Client", False)
Syntax
Sorting a Looper control according to a list of attributes Hide the details
<Result> = LooperSort(<List of attributes>)
<Result>: Boolean - True if the sort was performed,
- False otherwise.
<List of attributes>: Character string Name of the attributes according to which the Looper control will be sorted (up to 10 attributes). This character string must have the following format:
"[<Sens>]<Attribut 1>" + TAB + "[<Sens>]<Attribut 2>" + TAB + ... with:- : sorting direction (optional), can take the following values:
- "+": sorting will be ascending (default value).
- "-": sorting will be in descending order.
- : name of the attribute used for sorting.
Sorting a Looper control or canceling a previous sort Hide the details
<Result> = LooperSort([<Direction>]<Looper> [, <Indicator>])
<Result>: Boolean - True if the sort was performed or canceled,
- False otherwise.
<[<Direction>]<Looper>>: Character string Name of the Looper control to sort. - If <Direction> is equal to "+", the Looper control will be sorted in ascending order (by default).
- If <Direction> is equal to "-", the Looper control will be sorted in descending order.
<Indicator>: Optional boolean - True to perform the sort (default value),
- False to cancel a sort that was performed beforehand.
Remarks Use conditions LooperSort can be used on: - a Looper control based on a data file,
- a Looper control populated programmatically.
Looper bound to a data source and using a programmed iteration LooperSort does not work on a Looper control with the following characteristics: - Looper control bound to a data source,
- Looper control that uses Browse programmatically ("Content" tab in the control description window).
To change the display order of a Looper control with programmed iteration, you must adapt the code found in the different read processes of the Looper control (process for reading the first one, the next one, the previous one, ...).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|