CCeDBProp::GetSortFlags

This method retrieves the sort flags of a sort property.

At a Glance

Header file: Wcedb.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later

Syntax

WORD GetSortFlags( ) const;

Return Values

The flags that determine the sort order for the database. It is one of the enumerated values shown in the following table.

Value Description
CCeDBProp::Sort_Ascending The sort is done in ascending order.
CCeDBProp::Sort_Descending The sort is done in descending order.
CCeDBProp::Sort_CaseInsensitive The sort operation is case sensitive. This value is valid only for strings.
CCeDBProp::Sort_UnknownFirst Records that do not contain the property identified by wIdent are placed before all the other records. By default, these records are placed after all other records.
CCeDBProp::Sort_GenericOrder This flag indicates the sort property is only a placeholder. If a CCeDBDatabase object has no sort properties assigned to it, CCeDBProp::Sort_GenericOrder is assigned as the default sort flag.

Remarks

You can pass one or more sort properties to the CCeDBProp::Create method when you create a CCeDBProp database object, in order to specify the sorting orders to use in the database.

See Also

CCeDBDatabase::Create, CCeDBProp::SetSortFlags