I
IT菜鸟
Unregistered / Unconfirmed
GUEST, unregistred user!
写了一段程序 如下:
begin
if combobox1.Text='' then
ShowMessage('请选择目录级别')
else
str:='insert into type where passid:='''+trim(combobox1.text)+''' and name:='''+trim(edit1.Text)+'''';
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add(str);
adoquery1.Open;
end;
运行出现以下错误
[Error] Unit1.pas(123): Undeclared identifier: 'ShowMessage'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
请高手指点
begin
if combobox1.Text='' then
ShowMessage('请选择目录级别')
else
str:='insert into type where passid:='''+trim(combobox1.text)+''' and name:='''+trim(edit1.Text)+'''';
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add(str);
adoquery1.Open;
end;
运行出现以下错误
[Error] Unit1.pas(123): Undeclared identifier: 'ShowMessage'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
请高手指点