How to simulate the <gotonearest> method of BdeTable in Adodataset?(100分)

  • 主题发起人 主题发起人 camela
  • 开始时间 开始时间
C

camela

Unregistered / Unconfirmed
GUEST, unregistred user!
pls help me, YYSUN:
The BDEtable has the function of <gotokey/gotonearest/findnearest> and others ,
The Adodataset has the function of <locate with [loPartialKey] option>
But the function of <locate with [loPartialKey] option> is different from
the function of <gotonearest>

How can I simulate the <gotonearest> method of BdeTable in Adodataset?

ps. if there is a employee table below
idno name
1 1001 jimmy
2 1022 steven
3 1056 jackson
4 1066 mary
........................

a. gotonearest with idno-keyvalue '1025' ---- We can goto rec position 3
b. locate with idno-keyvalue'1025' and [loPartialKey] ----We can not goto rec position 3
 
后退
顶部