Re: NEED HELP with opening values and assigning them to edit boxes


Posted by webmaster Guido on June 27, 2000 at 16:11:42:

In Reply to: NEED HELP with opening values and assigning them to edit boxes posted by Kreso on June 27, 2000 at 00:38:29:

: I want that when I click on (lets say) a button,that then it takes the text from edit boxes and to save'em in a file.
: thank you for reading this
: and (many) thanks to webmaster GUIDO for quickly answering me...
____
You could try this:

procedure ...
var
SL: TStringList;
begin
SL := TStringList.Create;
SL.Add(Edit1.Text);
SL.Add(Edit2.Text);
// and so on for other Edits
SL.SaveToFile('c:/data/savedits.txt');
SL.Free;
end;



Related Articles and Replies: