各位大大好人,请帮我看这代码哪有问题:谢谢
procedure TForm1.Button2Click(Sender: TObject);
begin
table1.Locate(combobox1.Text+';'+combobox2.Text,vararrayof([edit1.Text,edit2.Text]),[locaseinsensitive])
then
showmessage('找到记录')
else
showmessage('没有记录')end;
错误提示:
[Error] locatesercher.pas(49): 'END' expected but 'THEN' found
[Fatal Error] Project2.dpr(5): Could not compile used unit '..\1\locatesercher.pas'
到底怎么回事哦!!??运行时then一行红色的