procedure TASS.SpeedButton3Click(Sender: TObject);
var
strtype2 : string;
begin
strtype2:=DataSetBroker1.DataSet.FieldByName('BH').AsString;
InfoBroker3.Info.DataSetByID('DDHFSJJ').Close;..................这句报错
with TSQLDataSet(InfoBroker3.Info.DataSetByID('DDHFSJJ')) do
begin
SQL.Text :='select * from HFJLB where KHMC='''+strtype2+'''';
//jsDialogs.ShowMsg(SQL.Text, '系统提示');
end;
InfoBroker3.Info.DataSetByID('DDHFSJJ').Open;
FuncBroker3.Func.Run('');
FuncBroker3.Func.MainForm.Show;
end;
procedure TASS.SpeedButton1Click(Sender: TObject);
var
strtype : string;
begin
strtype:=DataSetBroker1.DataSet.FieldByName('BH').AsString;
DataSetBroker2.DataSet.Close;
with TSQLDataSet(DataSetBroker2.DataSet) do
begin
SQL.Text :='select * from QZBXTSB where KHMC='''+strtype+'''';
end;
DataSetBroker2.DataSet.Open;
FuncBroker1.Func.Run('');
FuncBroker1.Func.MainForm.Show;
end;
还是不行