Title: RE: Bug in DmFindSortPosition [was Generating unique r
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)
  • returns the record number where the record should be inserted (if the record wasn't found)
(I'm actually simplifying a bit since I'm ignoring the case of multiple hits.)

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

Reply via email to