A
andyzhouap98111
Unregistered / Unconfirmed
GUEST, unregistred user!
type
TMyForm=class
private
BaseFormName: array of string;
BaseFormIndex: integer;
BaseFormcount:integer;
public
constructor Create;
procedure MyFormCreate(sender:TObject);
end;
constructor TMyForm.Create;
begin
BaseFormIndex:=-1;
BaseFormcount:=0;
end;
procedure TMyForm.MyFormCreate(sender:TObject);
begin
BaseFormcount:=BaseFormcount+1;
BaseFormName[BaseFormcount-1]:=(sender as Tform).Name;
end;
TMyForm=class
private
BaseFormName: array of string;
BaseFormIndex: integer;
BaseFormcount:integer;
public
constructor Create;
procedure MyFormCreate(sender:TObject);
end;
constructor TMyForm.Create;
begin
BaseFormIndex:=-1;
BaseFormcount:=0;
end;
procedure TMyForm.MyFormCreate(sender:TObject);
begin
BaseFormcount:=BaseFormcount+1;
BaseFormName[BaseFormcount-1]:=(sender as Tform).Name;
end;