我这样作不行,望高手解答:
try
mainform.ClientDataSet2.Close;
mainform.ClientDataSet2.Provider.DataRequest(sql1+sql2+sql3+sql4+sql6+sql7+sql8+sql9);
mainform.ClientDataSet2.Params.ParamByName('FileTime').AsDateTime:=strtodatetime(trim(edit12.Text));
mainform.ClientDataSet2.Params.ParamByName('MaterialContent').DataType:=ftblob;
mainform.ClientDataSet2.Params.ParamByName('MaterialContent').LoadFromFile(trim(edit13.Text),ftblob);
mainform.ClientDataSet2.Open;
except
exit;
end;