RecordIndex= 
DmFindSortPosition(DbRef,&PersonRecord,0,(DmComparF*)sortFunc,0);
static Int sortFunc( void * record1, void * record2, Int sortBy )
{
        PersonInfo *rec1;
        PersonInfo *rec2;

        rec1 = (PersonInfo*)record1;
        rec2 = (PersonInfo*)record2;

        return StrCaselessCompare(rec1->Name ,rec2->Name);


}

Manish Jaggi
Developer
Geovision Inc
H-13 Chittranjan marg
phone 91-141-364129 , 373696 , 653251
Fax 317125



>From: Wojciech Godynski <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: RecordList structure
>Date: Fri, 23 Nov 2001 12:30:11 +0100
>
>Once we were discussing about using multiple sort orders for records in
>Palm.
>I solved this problem by creating my own indices.
>But I'm not satisfied till now.
>Each database header is foollowed by RecordListType entries.
>When database is sorted these entries are changed (Uids etc.) .
>Is it possible to store these entries for each sort order and swap them
>when needed ?
>Does anyone have expirience in such things?
>
>Wojtek
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, 
>please see http://www.palmos.com/dev/tech/support/forums/


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to