I would like to search for nearest but following command it not working.
Anyone have solution for this?
with MyTable1 do begin
SetKey;
FieldByName('Company').AsString:=edSearch.text;
GotoNearest;
end;
How to goto nearest?
Re: How to goto nearest?
hello,
There is no GoToNearest method in MyDAC. Instead of it, you should use the Locate or LocateEx method.
There is no GoToNearest method in MyDAC. Instead of it, you should use the Locate or LocateEx method.
Code: Select all
MyTable1.Locate('Company',edSearch.text,[]);-
cybsistemas
- Posts: 118
- Joined: Mon 12 Sep 2005 17:31
- Location: Argentina
Re: How to goto nearest?
include memdata.dcu in the uses
MyTable1.LocateEx('Company',edSearch.text,[lxNearest])
MyTable1.LocateEx('Company',edSearch.text,[lxNearest])
Re: How to goto nearest?
Thanks, cybsistemas & AlexP it work very well.
Re: How to goto nearest?
hello,
If you have any other questions, feel free to contact us.
If you have any other questions, feel free to contact us.