Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Findnearest in ElevateDB
Sun, Mar 4 2007 10:37 AMPermanent Link

Mats Berggren
Hello

I don't know if Im doing something wrong but I have a problem with the function TEDBTable.FindNearest.

If I search a name-field with FindNearest I get a hit when I search for the name "Emanuel" if the name "Emanuel" exists in the table.

If I search the same field for "Eman" I DON'T get a hit. The table cursor points to "Sarah" or whatever name.
Shouldn't I get a hit on the record with the name "Emanuel" if I search for "Eman" with FindNearest?

I've used the same code that worked with BDE when I use ElevateDB but I don't get the same results.

Can anyone help?

Best regards

Mats Berggren
Mon, Mar 5 2007 9:21 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mats,

<< I don't know if Im doing something wrong but I have a problem with the
function TEDBTable.FindNearest.

If I search a name-field with FindNearest I get a hit when I search for the
name "Emanuel" if the name "Emanuel" exists in the table.

If I search the same field for "Eman" I DON'T get a hit. The table cursor
points to "Sarah" or whatever name. Shouldn't I get a hit on the record with
the name "Emanuel" if I search for "Eman" with FindNearest?

I've used the same code that worked with BDE when I use ElevateDB but I
don't get the same results. >>

This is a bug.  The FindNearest method isn't setting the partial-length
properly for nearest searches on character values.   A fix will be in 1.01
Build 2.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image