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 through programming.
- Define the sort direction for an item or a component of a composite key (when the item is described through programming).
// Find out the sort direction for the LastName component of the LastNameFirstName composite key Res is int Res = Customer.LastNameFirstName[1].SortType SWITCH Res CASE hIncreasing: Info("Ascending sort on LastName") CASE hDecreasing: Info("Descending sort on LastName") CASE hNotSorted: Info("No sort on LastName") 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:
| | hDecreasing | Descending order | hIncreasing | Ascending order | hNotSorted | Item 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].
This page is also available for…
|
|
|
|