![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 2 of 2 total |
![]() |
Tue, May 30 2006 4:09 AM | Permanent Link |
Francois Steyn | Hi.
Im using Delphi 7 with DBISAM4.24 Build 1 in a mixed environment using Local&Remote sessions. Im trying to use a Table.FindNearest on a Descending Key. My result is that the active record is always 1 after the actual record that it should be. Consider the following list of items in descending order(Primary Key = Ascending, Secondary Key = Descending): 1: 662001 2: 661001 3: 660001 4: 110001 If I FindNearest(['66']) I land up on 4; If I FindNearest(['661']) I land up on 3; Would it be possible for FindNearest to work the same way as a Ascending order and land on 1 if i FindNearest(['66'])? Like search from the top? Thanks ![]() Francois Steyn |
Tue, May 30 2006 9:09 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Francois,
<< Would it be possible for FindNearest to work the same way as a Ascending order and land on 1 if i FindNearest(['66'])? Like search from the top? >> It would be possible, but it wouldn't be correct. If you want an ascending FindNearest result, then you'll have to add another index that uses ascending columns for the secondary key. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Monday, July 14, 2025 at 02:20 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |