This member function sets the new sort order of the database.
BOOL SetSortProps( int nSize, const CCeDBProp *pSortProps );
Header file: | Wcedb.h |
Platforms: | |
Versions: | 2.0 and later |
TRUE if the last modified date and time were successfully set. FALSE if there was an error. Call ::GetLastError to determine why the operation failed.
The pSortProps parameter cannot contain more than CEDB_MAXSORTORDER sort properties. In Windows CE 2.0, this number is four.
You cannot have two sort properties in the same database with the same application-defined identifier.
The sort property you pass in the pKeyProp parameter of the Open member function must be one of the properties you previously specified in a call to either SetSortProps or Create.
CCeDBDatabase Overview, CCeDBDatabase Member Functions, Windows CE Database Classes, CCeDBDatabase::Create, CCeDBDatabase::GetSortProps, CCeDBDatabase::Open, CCeDBProp::CCeDBProp, ::GetLastError