A
andeuy
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Classes, Forms, dxBar;
type
TMainForm = class(TForm)
btn: Tbutton;
procedure btnClick(Sender: TObject);
var
MainForm: TMainForm;
implementation
{$R *.DFM}
uses Unit2;
procedure TMainForm.btnClick(Sender: TObject);
var
ss: string;
myform:Tform;
begin
ss:='xxForm';
问题在这里了,我如何去ss这个字符串变量去取代xxForm并Show出来呢?
end;
end.
unit Unit2;
interface
uses Classes, Forms;
type
TxxForm = class(TForm)
end;
implementation
{$R *.DFM}
uses SysUtils, Unit1;
end.
interface
uses
Classes, Forms, dxBar;
type
TMainForm = class(TForm)
btn: Tbutton;
procedure btnClick(Sender: TObject);
var
MainForm: TMainForm;
implementation
{$R *.DFM}
uses Unit2;
procedure TMainForm.btnClick(Sender: TObject);
var
ss: string;
myform:Tform;
begin
ss:='xxForm';
问题在这里了,我如何去ss这个字符串变量去取代xxForm并Show出来呢?
end;
end.
unit Unit2;
interface
uses Classes, Forms;
type
TxxForm = class(TForm)
end;
implementation
{$R *.DFM}
uses SysUtils, Unit1;
end.