ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SortType (Property)
In french: TypeTri
The SortType property is used to:
  • Find out the sort direction defined for an item or for a component of a composite key. This item was defined in the data model editor or programmatically.
  • Define the sort direction for an item or a component of a composite key (when the item is described through programming).
Example
// Connaître le sens de tri de la composante Nom de la clé composée NomPrénom
Res is int
Res = Client.NomPrénom[1].TypeTri
SWITCH Res
	CASE hIncreasing : Info("Tri croissant sur Nom")
	CASE hDecreasing : Info("Tri décroissant sur Nom")
	CASE hNotSorted : Info("Pas de tri sur Nom")
END
Syntax

Finding out the sort direction defined for an item Hide the details

<Result> = <Data file>.<Item>.SortType
<Result>: Integer constant
Type of sort:
hDecreasingDescending order
hIncreasingAscending order
hNotSortedItem not sorted
<Data file>: Character string
Name of the data file used.
<Item>: Character string
Name of the item used.
If the item is a component of a composite key, <Item name> corresponds to: <Name of composite key>[<Component index>].
Example: LastNameFirstName[1].
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadIOS WidgetUser code (UMC)Ajax

Defining the sort direction for an item described programmatically Hide the details

<Item>.SortType = <Sort direction>
<Item>: Character string
Name of the item used. This name is defined with the Item Description type.
If the item is a component of a composite key, <Item name> corresponds to: <Name of composite key>[<Component index>].
Example: LastNameFirstName[1].
<Sort direction>: Integer constant
Type of sort:
hDecreasingDescending order
hIncreasingAscending order
hNotSortedItem not sorted
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help