Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread FindKey vs Locate
Fri, Jun 12 2009 1:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

David,

<< But it *is* using the active index!  That's why I asked this
question--because I didn't expect it to do what it did.  In fact, I pass in
the IndexFieldNames property of the dataset as the first parameter of the
call to Locate so that if the index changes, it still searches on the proper
field. >>

My apologies, I didn't get that from your initial message.  Can you send me
the table files (and database catalog) that you're using along with the
Locate statement that you're using ?  I suspect that while you think the
Locate is using the active index, it may not be.  This is something that is
on the enhancement list - a way to tell if Locate is using an index or not.

Thanks,

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jun 12 2009 2:09 PMPermanent Link

"David Cornelius"
> My apologies, I didn't get that from your initial message.  Can you
> send me the table files (and database catalog) that you're using
> along with the Locate statement that you're using ?  I suspect that
> while you think the Locate is using the active index, it may not be.
> This is something that is on the enhancement list - a way to tell if
> Locate is using an index or not.

Will do this weekend some time.  Thanks.

--
David Cornelius
CorneliusConcepts.com
Tue, Jun 30 2009 3:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

David,

Per email after examining the test project and database:

The problem is that the Locate is not using the active index because the
active index "DocNum" does not use a case-insensitive collation, whereas the
Locate is specifying that it wants a case-insensitive search.

--
Tim Young
Elevate Software
www.elevatesoft.com

« Previous PagePage 2 of 2
Jump to Page:  1 2
Image