|
发表于 2007-9-7 09:30:46
|
显示全部楼层
var
lForm: HTBGJBGN.THTBG;
lQuery: TQuery;
begin
lForm := HTBGJBGN.THTBG.Create(Self.Context);
lQuery :=TQuery.Create(nil);
try
lForm.BG.DataSet.ReadOnly:=true;
lForm.DocViewHTXX_BGJLB.ReadOnly:=true;
lQuery.ConnectionString:='DATABASEURL=Biz:\FG\fsw.Database';
lQuery.CommandText := 'select * from BGJL,HTJBXX where BGJL.YHTBH=HTJBXX.HTBH ';
lQuery.Open;
if lQuery.Eof then
begin
jsDialogs.ShowMsg('没有你所需要的信息!', '');
exit;
end;
lForm.ShowModal;
finally
lForm.Free;
lQuery.Free;
end;
是这个,上面那个给弄错了,您帮我看看还少点什么? |
|