R
RuSeL
Код:
procedure TForm1.N3Click(Sender: TObject);
var
maps: string;
id: Integer;
i, n, a: integer;
Tag:Integer;
Name: string;
begin
id:=Image.ComponentIndex;
Name:='';
n:=(id-53);
for i:=id downto 53 do
for a:=1 to n do
if id>53 then
begin
Name:=Image.Components[id].Name;
Tag:=Image.Components[id].Tag;
Memo1.Visible:=true;
Form1.Memo1.Lines[a-1]:=Name;
Form1.Memo1.Lines[a-1]:=IntToStr(Tag);
end;
SaveDialog1.FileName := maps;
if SaveDialog1.Execute then
begin
maps:= SaveDialog1.FileName;
Memo1.Lines.SaveToFile(maps+'.maps');
end;
end;