Michael,
I guarantee you, DmSeekRecordInCategory works like you want.
Given the database with the 5 records you described below, after calling:
recordNum = 0;
DmSeekRecordInCategory(inDB, &recordNum, 1, dmSeekForward, 3);
recordNum will contain 4, the record number of the 2nd record in category
3.
If you call:
recordNum = 0;
DmSeekRecordInCategory(inDB, &recordNum, 0, dmSeekForward, 3);
then, recordNum will contain 1, the 1st record in category number 3.
If you're getting different results, post your source and I'll tell you why
it isn't doing what you want.
Neil
> 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
>
> No! This does not work. This function works as I thought. It only
> returns the item number in the category. What I want it the index
> number in the database.
>
> I created a database with 6 items. Items 3,5,6 were in the same
> category. I selected item 0 in the list (or item 3 in the database) and
> this function returns 0.
>
> DB Category
> -------------------
> item0 cat1
> item1 cat3
> item2 cat2
> item3 cat1
> item4 cat3
>
> What I am looking for, is when I have a list of items in category 3,
> that if I select item5 it returns index for item 4 (ie. index 4). That
> function just returns 1 (zero based).
>
>
>>
>> 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
> ----------------------------------------------------
>
>
>
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545