At 8:16 AM -0400 10/8/99, Fawcett, Mitch wrote:
Actually I found the documentation on DmFindSortPosition to be clear <snip>
The 3.0 docs are quite clear on how to use DmFindSortPosition to find where to insert a record, but not so clear on how to use it to find an existing record. The very first thing they say:
Return to where a record is or should be.
would seem to indicate that the returned record number would be the record found when there is a hit. This is not the case. Hopefully this has been or will be clarified in later versions of the docs. At this point the semantics probably shouldn't be changed:
returns the record number after the record found (if the record was found)(I'm actually simplifying a bit since I'm ignoring the case of multiple hits.)
returns the record number where the record should be inserted (if the record wasn't found)
The docs should explain how to use DmFindSortPosition to find existing records as well as how to use it to find where to insert new records.
-
Danny Epstein, Applied Thought Corporation
Have friends with Palm organizers? Get BeamBooks!
http://www.appliedthought.com/beambooks
Danny,
Please go to http://www.palm.com/devzone/docs.html and download the Current Palm OS Documentation. The particular section you're complaining about was fixed approximately January or February of this year.
