Mimic GotoCurrent in MyTable

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Jonathan Liaw

Mimic GotoCurrent in MyTable

Post by Jonathan Liaw » Mon 02 May 2005 10:02

Hi,
I have many functions written using GotoCurrent() procedure before I migrate to MySQL and using MyDAC. I wonder is there a similar procedure in MyDAC, if not, is there any generic way to achieve this?
Thanks

Jonathan Liaw

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 04 May 2005 06:30

Please use LocateEx method

Guest

Post by Guest » Wed 04 May 2005 11:26

Hi Ikar,
Using LocateEx need some key fields and its values (which I don't have such info at the point of my code), unlike the GotoCurrent which requires only two tables as parameters. Any example code?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 05 May 2005 13:02

You can use RecNo property for quick synchronization but this method will not work for editable tables.

We are planning to add GotoCurrent support but not at the nearest time.

Post Reply