Hi everyone,
I have the following code to save the text inside an editbox:
var
Data: TStringList;
begin
Data := TStringList.Create;
try
Data.Append(Edit1.Text);
Data.SaveToFile(Savedialog1.Filename +'.txt');
finally
Data.Free;
end;
end;
And this code to load it to that editbox where i saved it from:
var
Data: TStringList;
begin
Data := TStringList.Create;
try
Data.LoadFromFile(OpenDialog1.Filename);
if Data.Count > 0 then
Edit1.Text := Data.Strings[0];
finally
Data.Free;
end;
end;
My Question is:
Is it possible to save like...10 editboxes and load them into those 10 again?