Results 1 to 4 of 4
-
13th Jan 2012, 12:40 AM #1OPMemberWebsite's:
mkspot.orgAssistance for delphi
Hello,
I have one problem in delphi with saving some text. I want to save text from memo
and i want this text to save in .txt format. I try to find help with google but....
i know i need to insert SaveDialogs , to define dialog variable, Give the dialog a title,Set the default extension, i know code for that but how to get text from memo and save i dont know
Can you help me?
if i post this in wrong forum sorry i dont know where is correct to post
NightLightW Reviewed by NightLightW on . Assistance for delphi Hello, I have one problem in delphi with saving some text. I want to save text from memo http://pic.mk/images/k129K.jpg and i want this text to save in .txt format. I try to find help with google but.... i know i need to insert SaveDialogs , to define dialog variable, Give the dialog a title,Set the default extension, i know code for that but how to get text from memo and save i dont know:'( Can you help me? if i post this in wrong forum sorry i dont know where is correct to post Rating: 5
-
13th Jan 2012, 04:25 AM #2Member
Memo1.lines.SaveToFile('C:\...\FILENAME.txt');
You can change the path and filename, or add a save dialog.
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
you can do
If SaveDialog1.Execute then begin
// your code here
end;
-
13th Jan 2012, 06:48 PM #3OPMemberWebsite's:
mkspot.orgThanks for help StillCyco
If SaveDialog1.Execute then begin
// your code here
[what can i inset here ?]
end;
I try with this code but i cant save
-
14th Jan 2012, 05:25 AM #4OPMemberWebsite's:
mkspot.orgHey i fix this problem with this code
Code:procedure TForm1.Button5Click(Sender: TObject); begin if SaveDialog1.Execute then BBCodeoutput.Lines.SaveToFile(SaveDialog1.FileName); end; procedure TForm1.FormCreate(Sender: TObject); begin SaveDialog1.Filter := 'Text files (*.txt)|*.TXT'; end;
Code:http://*******/xEn1X
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
need DNS assistance
By sillyman in forum Server ManagementReplies: 1Last Post: 26th Apr 2012, 09:35 PM -
Need Assistance
By sycokiller in forum Technical Help Desk SupportReplies: 7Last Post: 9th Apr 2012, 04:03 PM -
Need assistance for filesharing...
By vakkomboyz in forum File Host DiscussionReplies: 0Last Post: 21st Oct 2011, 08:51 AM -
Need Assistance!
By ZeroAT in forum General DiscussionReplies: 15Last Post: 26th Jan 2011, 11:34 PM -
[Selling] Delphi source code for login and posting into a vBulletin Board
By geskill in forum Completed TransactionsReplies: 0Last Post: 4th Dec 2010, 05:38 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...