I'd use DmSeekRecordInCategory.

To find item number 3:

index = 0;
err = DmSeekRecordInCategory (myDB, &index, 3,
     dmSeekForward, myCategory);

After the call, index will contain the record number (which you can then
use in a call to DmDeleteRecord).


Neil

> 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
>
>
>
>


--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

Reply via email to