I have a Tform1.btnSearchClick
I can search by "title" but when I try to put in "actor" it gives me an error. Here is what I have that is working.
procedure TForm1.btnSearchClick(Sender: TObject);
begin
SQLQuery1.locate('Title',edtSearch1.Text,[loCaseInsensitive,loPartialKey]);
end;
If I try to put in 'Actor' I get the error:
unit1.pas (94,85)Error: Wrong number of parameters specified for call to "Locate"
It has the squiggly line under the ); at the end of the line.
procedure TForm1.btnSearchClick(Sender: TObject);
begin
SQLQuery1.locate('Title', 'Actor',edtSearch1.Text,[loCaseInsensitive,loPartialKey]);
end;