|
|
|
|
|
- Sort item
- Sorting a view on several items
HSortView (Function) In french: HTrieVue
Not available with this kind of connection
Warning
From version 20, SQL views and the materialized views are available. The views handled by this function correspond to the former view mechanism. They do not correspond to SQL views or to materialized views.
Sorts an HFSQL view by creating an index on a view item.
HSortView(ViewCustomer84, "City,Name") Syntax
<Result> = HSortView([<View> [, <Sort item>]])
<Result>: Boolean - True if the view was sorted,
- False otherwise. HError returns more details about the problem.
<View>: Optional character string Name of view used. If this name is not specified, HSortView handles the last view used by the last function for HFSQL management (starting with the letter H). <Sort item>: Optional character string List of sort items found in the view. The items are separated by a comma or CR. The sort order can be specified by prefixing the string with "+" (ascending) or "-" (descending). By default, the sort is performed in ascending order ("+"). If this parameter is not specified, HSortView refers to the last item of the view used. The possible format for this list are:- "[+/-]<1st item> [, [+/-]<2nd item> ]"
- "[+/-]<1st item> [CR [+/-]<2nd item> ]"
The sort is performed according to the first sort item, then according to the second one, ... The following sort order is applied:: for an ascending sort, "a" < "u" < "é". Remarks Sort item An index can be created on any item of the view. If the item was a key item in the data file, the order relationship that was given to it in the analysis is used (sensitivity to the case, to the punctuation, etc.).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|