I have a form that needs the contents of all the Tedit controls saved to an ini file each time it's closed and filled each time it's opened. I was doing this line by line for each control. Since the app has gotten larger and may continue to grow, this method gets tedius. For some reason it's seizing when reading the string in.
So here's what I have:
procedure TForm1.FormCreate(Sender: TObject);
for i := 0 to ComponentCount - 1 do
if (Components[i] is TEdit) then
Temp.Name := Components[i].Name;