Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Code is missing in uSaveUnitForm.pas #8

Open
SkybuckFlying opened this issue Aug 8, 2019 · 0 comments
Open

Save Code is missing in uSaveUnitForm.pas #8

SkybuckFlying opened this issue Aug 8, 2019 · 0 comments

Comments

@SkybuckFlying
Copy link

SkybuckFlying commented Aug 8, 2019

So I added some save code:

procedure TSaveUnitForm.btnSaveClick(Sender: TObject);
begin
if SaveDialog1.Execute then
begin
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
end;
end;

I change sd to SaveDialog1. Change it back if you just want to plug and play or use the code below :)

So then this code would look like:

if sd.Execute then
begin
Memo1.Lines.SaveToFile(sd.FileName);
end;

Bye,
Skybuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant