No carga imagenes
Publicado por Cristián (115 intervenciones) el 11/05/2003 18:33:30
Hola! yo de nuevo.... antes me ayudaron con lo de las imagenes... pero no cargan :'( Este es mi codigo:
Procedure TForm2.FormShow(Sender: TObject);
var
i,j:integer;
a,b:string;
begin
j:=-1;
b:='D:\Inda Software\Tarot\Imagenes\';
for i:=0 to Form2.ControlCount-1 do
if form2.Controls[i] is Timage then
begin
j:=j+1;
if j<10 then
begin
a:='0'+inttostr(j);
Timage(Form2.Controls[i]).Picture.Loadfromfile(b+'imagen'+a+'.jpg');
end;
Timage(Form2.Controls[i]).Picture.Loadfromfile(b+'imagen'+inttostr(j)+'.jpg');
end;
end;
end.
Las imagenes estan con estos nombres: imagen00, imagen01..imagen77.jpg
Pero al momento de ejecutarlo no carga las imagenes. Espero me yuden. Gracias
HA!! por cierto..... con que funcion determino el path de mi ejecutable?:)
Procedure TForm2.FormShow(Sender: TObject);
var
i,j:integer;
a,b:string;
begin
j:=-1;
b:='D:\Inda Software\Tarot\Imagenes\';
for i:=0 to Form2.ControlCount-1 do
if form2.Controls[i] is Timage then
begin
j:=j+1;
if j<10 then
begin
a:='0'+inttostr(j);
Timage(Form2.Controls[i]).Picture.Loadfromfile(b+'imagen'+a+'.jpg');
end;
Timage(Form2.Controls[i]).Picture.Loadfromfile(b+'imagen'+inttostr(j)+'.jpg');
end;
end;
end.
Las imagenes estan con estos nombres: imagen00, imagen01..imagen77.jpg
Pero al momento de ejecutarlo no carga las imagenes. Espero me yuden. Gracias
HA!! por cierto..... con que funcion determino el path de mi ejecutable?:)
Valora esta pregunta


0