Bonjour a tous
je dois réaliser un interface graphique avec des edits en dynamique.Pour récuperer des valeurs dans une base de données.
Mais j'arrive pas à récuperer ou a changer les propriétés des edits crées dynamiquement et j'arrive pas a mettre un nom aux edits.
Voici la création des edits
for i:=0 to 8 do
begin
for j:=0 to 3 do
begin
With TEdit.Create(Form3.ScrollBox1) do begin
inherited;
Parent := Form3.ScrollBox1;
//name:='fjhgi'+IntToStr(i+j);
Left := 50+100*j;
height := 21 ;
top := 30+(35*i) ;
width:=95;
Tag:=1;
name:='Etape+IntToStr(i+j); //ici il me dis que Etape1 existe deja
end;
end;
With TLabel.Create(Form3.ScrollBox1) do begin
Parent := Form3.ScrollBox1;
Left := 8;
height := 13 ;
top := 35+(35*i) ;
width:=30;
Caption:='Etape'+IntToStr(i+1);
Name:='LblEtape'+IntToStr(i+1);
end;
end;
for k:=0 to 4 do
begin
With TLabel.Create(Form3.ScrollBox1) do begin
Parent := Form3.ScrollBox1;
Left := 80+k*100;
height := 13 ;
top := 10 ;
width:=30;
Caption:='Param'+IntToStr(k+1);
Name:='LblParam'+IntToStr(k+1);
end;
end;
Merci de votre aider.