procedure Tmain.N11Click(Sender: TObject);
begin
if checkuser(useusename, 'databak') then exit;
if not assigned(frmbackup) then begin
Application.CreateForm(tfrmbackup, frmbackup);
frmbackup.ShowModal;
end;
end;
谁能帮忙分析下具体意思,每句的作用,~~~~~~
我就是菜鸟中的菜鸟!!
求救~~~~~~~~~~~~~
begin
if checkuser(useusename, 'databak') then exit;
if not assigned(frmbackup) then begin
Application.CreateForm(tfrmbackup, frmbackup);
frmbackup.ShowModal;
end;
end;
谁能帮忙分析下具体意思,每句的作用,~~~~~~
我就是菜鸟中的菜鸟!!
求救~~~~~~~~~~~~~
if not assigned(frmbackup) then begin //判断frmbackup是不是存在,不存在的话
Application.CreateForm(tfrmbackup, frmbackup); //建立frmbackup
frmbackup.ShowModal; //以ShowModal的方式显示frmbackup
end;