var
Floor : string;
Room : string;
i : Integer;
t1 : TStringList;
begin
// t1作为房间号码表
for i := 1 to t1.Count do
begin
if i < 10 then
Room := Floor+'80'+Room+'0'+i;
else if (i>10) and (i < 21) then
Room := Floor+'80'+Room+i;
end;
ShowMessage(Room);
procedure TForm1.Button1Click(Sender: TObject);
var
tl:tstringlist;
i:integer;
s:string;
begin
tl := tstringlist.Create;
for i := 0 to strtoint(Edit3.Text) - 1 do
begin
s := Edit1.Text+'80'+Edit2.Text+format('%.2d',[i+1]);
tl.Add(s);
end;
showmessage(tl.Text);
tl.Free;
end;