On Tue, 21 Dec 1999, Ramel Levin wrote:

> UInt  recordNum = 0;
> DmSeekRecordInCategory(inDbP, &recordNum, inOffset, dmSeekForward,
> inCategory);
> 
> inOffset would be 3 in your case and you'll get the number in recordNum

This is a totally confusing function description in the API
docs.  Offset is said to be the "number of records to move forward
or backward"; not 3rd or 4th in Category.

The descriptions also states: DmSeekRecordInCategory "Returns the index
of the record at the offset from the passed record index".

Now &index clearly seems to indicate that an index is returned but
the "offset from the passed record index" is not obvious what that
means.  In fact, it does not seem to mean the number within the category
at all.

Why would it not just say that offset "is the index of the
record within the category"?

Thanks

> 
> 
> Ramel Levin
> The PalmMate Team
> 
> Got a Palm? Gotta visit www.PalmMate.com
> 
> ----- Original Message -----
> From: Michael S. Davis <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 21, 1999 5:56 PM
> Subject: Still no answer - Index of Selected item in Category
> 
> 
> >
> > I still need a solution to this problem.  I want to be able
> > to delete a record that is displayed in a list that is displayed
> > on a form.  The list contains items within a category.
> >
> > So there might be 4 items in the list because there are only
> > 4 items within a specific category.
> >
> > When I select item 3, for instance, I want to delete that item
> > from the database.  But I need the index, within the database, to do
> > that.  And the index might be 100, or 30 or who knows what.
> >
> > The only function that I see that is close is DmPositionInCategory() but
> > that appears to return the position in the list (3 in this case) and
> > not the index within the database, that is needed by DmDeleteRecord().
> >
> > Can someone explain how to get the index, needed by DmDeleteRecord()
> > when I have a subset of the database, by using a category.
> >
> >
> > Thanks
> >
> >
> >
> >
> 
> 

----------------------------------------------------
Shoot-to-Win

Protect the 2nd Amendment
----------------------------------------------------

Reply via email to