var
s:string;
begin
s:=combobox1.SelText;
query1.SQL.Add('select 编号 from 出件登记表 where 地区=s');
query1.Open;
query1.Last;
end
怎么编译时出来
[Error] Unit1.pas(91): Missing operator or semicolon错误呀是怎么回事儿呢?
s:string;
begin
s:=combobox1.SelText;
query1.SQL.Add('select 编号 from 出件登记表 where 地区=s');
query1.Open;
query1.Last;
end
怎么编译时出来
[Error] Unit1.pas(91): Missing operator or semicolon错误呀是怎么回事儿呢?
query1.SQL.Add('select 编号 from 出件登记表 where 地区='''+s+'''');
s:string;
begin
s:=combobox1.Items[combobox1.itemindex];
query1.SQL.Add('select 编号 from 出件登记表 where 地区='''+s+'''');
query1.Open;
query1.Last;
end
s:string;
begin
s:=combobox1.Items[combobox1.itemindex];
query1.SQL.Clear; //加上这句试试
query1.SQL.Add('select 编号 from 出件登记表 where 地区='''+s+'''');
query1.Open;
query1.Last;
end
s:string;
begin
s:=combobox1.text;
query1.SQL.Clear;
query1.SQL.Add('select 编号 from 出件登记表 where 地区='''+s+'''');
query1.Open;
query1.Last;
end