S
shephard
Unregistered / Unconfirmed
GUEST, unregistred user!
frm_quanxian打开frm_ygselect,在按了frm_ygselect上一按钮后关闭frm_ygselect,
并且使frm_quanxian上的dbedit1获得焦点,为什么会出现“Access violation!
代码如下:
procedure Tfrm_quanxian.BitBtn1Click(Sender: TObject);
begin
frm_ygselect.Show ;
end;
procedure Tfrm_ygselect.BitBtn1Click(Sender: TObject);
begin
close;
frm_quanxian.dbedit1.SetFocus ;
end;
并且使frm_quanxian上的dbedit1获得焦点,为什么会出现“Access violation!
代码如下:
procedure Tfrm_quanxian.BitBtn1Click(Sender: TObject);
begin
frm_ygselect.Show ;
end;
procedure Tfrm_ygselect.BitBtn1Click(Sender: TObject);
begin
close;
frm_quanxian.dbedit1.SetFocus ;
end;