With the following code, I create an X quantity of edits:
var
x : integer;
var2: integer;
begin
var2 := strtoint(edit2.Text);
for x := 1 to var2 do
begin
ArrayEdit[x] := TEdit.Create(Self);
ArrayEdit[x].Parent:= Self;
ArrayEdit[x].Left := 83 + x * 50;
ArrayEdit[x].Top := 130;
ArrayEdit[x].Width := 41;
ArrayEdit[x].Height :=24;
ArrayEdit[x].Name := 'edit'+ inttostr(x+20);
ArrayEdit[x].Text := '';
ArrayEdit[x].ShowHint:=true;
ArrayEdit[x].Hint:='edit'+ inttostr(x+20);
end;
end;
My question is this: I need to get the values of each created edit, and receive in a variable to be used later. How can I do this?