CTRecord::SetDefaultIndex
Syntax
void SetDefaultIndex(NINT indexno)
void SetDefaultIndex(const CTString& name)
Parameters
Description
Sets the new record default index. Unless this function is called, the first index is the default.
To force a physical data table traversal without using any indexes, specify the following constant:
Return
None.
Example
myRecord->SetDefaultIndex("name");
// change the default index to "name"
myRecord->First();
// find the first record ordered by "name"
See also
GetDefaultIndex()