CTIndex::MoveSegment
Moves a key segment.
Declaration
void CTIndex::MoveSegment(NINT segmentNumber, NINT newIndex);
Description
CTIndex::MoveSegment() moves a key segment to a location indicated by newIndex.
Return
None.
Example
// move the last segment to first
CTIndex hIndex = hTable.GetIndex(0);
NINT count = hIndex.GetSegmentCount();
if (count > 0)
hIndex.MoveSegment((count - 1), 0);
See Also
CTTable::MoveSegment(), CTSegment::MoveSegment()