Hi,
is there any synonym function or procedure to setkey or findkey in Zeos table?
I would like to set the cursor to a defined datarecord.
Thanks
Josef
synonym to setkey or findkey
Moderators: gto, cipto_kh, EgonHugeist
-
- Junior Boarder
- Posts: 26
- Joined: 04.09.2005, 14:46
Hi,
yes I found locate, but locate don't use indices and is not to fast. Setkey, ect. was better in my old paradox/delphi environment.
My problem: I have a dbgird with a joined query as datasource. The user sets the cursor to a record. Than I would like to edit the original record some of the based tables.
So I would like to set the cursor to the original record like this.
ztable1.setkey;
ztable1.fieldbyname('ID').asinterger:=zquery1.fieldbyname('ar.id').asinteger;
ztable1.gotokey;
Any ideas to set the cursor to a record in a based table like this?
Kind regards
Josef
yes I found locate, but locate don't use indices and is not to fast. Setkey, ect. was better in my old paradox/delphi environment.
My problem: I have a dbgird with a joined query as datasource. The user sets the cursor to a record. Than I would like to edit the original record some of the based tables.
So I would like to set the cursor to the original record like this.
ztable1.setkey;
ztable1.fieldbyname('ID').asinterger:=zquery1.fieldbyname('ar.id').asinteger;
ztable1.gotokey;
Any ideas to set the cursor to a record in a based table like this?
Kind regards
Josef