Hi,
I'm trying to figure out how to use the FindSortPosition function using POL
and CW9.
My sort function look like this...
static Int16 SortByNAM (void *rec1, void *rec2,Int16 other,
SortRecordInfoPtr rec1SortInfo,
SortRecordInfoPtr rec2SortInfo,MemHandle appInfoH)
{
CDBStream db1(rec1);
CRec_Patient pat1;
pat1.Read(db1);
CDBStream db2(rec2);
CRec_Patient pat2;
pat2.Read(db2);
return (StrCaselessCompare (pat1.GetNAM(), pat2.GetNAM())); // GetNAM()
return a CString
}
Everything work fine using QuickSort.
My question is:
When calling FindSortPosition, what data sould i passed to the first
paramater in order to be able to read it back in the sort function?
Thanks for you help
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/