I have a comparison function called &customerCompareRecords that I use as a 
(DmComparF) parameter in a call to DmFindSortPosition.  The call looks like the 
following:

return DmFindSortPosition(db, (MemPtr) record, NULL, 
       (DmComparF *) &customerCompareRecords, (UInt16) sortOrder);

The index for the new record will be returned. 

The callback function customerCompareRecords returns 
       result is < 0 if r1 < r2, 
       result is > 0 if r1 > r2, 
       resutl is 0 if r1 == r2.
The prototype for customerCompareRecords is: 

static Int16 customerCompareRecords(customerDB *r1, 
        customerDB *r2, Int16 sortOrder,                           
        SortRecordInfoType *info1,
        SortRecordInfoType *info2, MemHandle appInfoH)

I want to know what the final value for variable "result" is after the final callback. 
 How do I get this, since this is a callback function?  
    
  Thanks,   Chris                       
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to