From: "Matt Graham" <[EMAIL PROTECTED]> > char *idname = "Hello"; > index = DmFindSortPosition( dbP, idname, 0, compar, 0 ); > > Because your compare function treats the records as a > string, you don't need to pass anything more complicated to > DmFindSortPosition because the compare function will just > treat it like a string anyway.
Another way to handle this sort of situation is to use the last parameter of DmFindSortPosition to tell the comparison callback what kind of value the second parameter is. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
