Click here to Skip to main content
14,383,961 members


AnswerRe: Can Delphi do what C++ can't? Pin
Rozis16-Sep-09 14:59
memberRozis16-Sep-09 14:59 
AnswerRe: Can Delphi do what C++ can't? Pin
Member 464187818-Sep-09 6:13
memberMember 464187818-Sep-09 6:13 
Questiondebug a dll in Delphi Pin
MrKBA7-Sep-09 3:56
memberMrKBA7-Sep-09 3:56 
AnswerRe: debug a dll in Delphi Pin
mobius1110018-Sep-09 3:52
membermobius1110018-Sep-09 3:52 
Questionmixed string format in richview control Pin
askhar51630-Aug-09 17:35
memberaskhar51630-Aug-09 17:35 
QuestionTDBEdit Copy and Paste Pin
dave.kelly13-Aug-09 5:50
professionaldave.kelly13-Aug-09 5:50 
AnswerRe: TDBEdit Copy and Paste Pin
dave.kelly17-Aug-09 4:07
professionaldave.kelly17-Aug-09 4:07 
QuestionDelete stuff in memobox Pin
aerosmith2k14-Aug-09 18:53
memberaerosmith2k14-Aug-09 18:53 
I have a question is it possible to delete the content of a textfile which items are all in a memobox


AssignFile(f, 'C:\windows\system32\drivers\etc\hosts'); {Assigns the Filename}
Append(f); {Opens the file for editing}
//Writeln(f, ' '+ memo);
Writeln(F, Memo.text); //Could be multi-line...
//Writeln(F, 'www.'+ Memo.text); //Could be multi-line...

Closefile(f); {Closes file F}

This appends to a file text from a memo field,

I want a 2nd button that removes only the ontent that is currently in the same memobox.

Trick is there is other items in the textbox so i cant just recreate the file.

Anyone able to help ot give pointers?
AnswerRe: Delete stuff in memobox Pin
Blue_Boy5-Aug-09 1:18
memberBlue_Boy5-Aug-09 1:18 
Questiondelphi book Pin
herupokiojio3-Aug-09 12:53
memberherupokiojio3-Aug-09 12:53 
AnswerRe: delphi book Pin
Blue_Boy3-Aug-09 14:26
memberBlue_Boy3-Aug-09 14:26 
AnswerRe: delphi book Pin
Deyan Georgiev6-Aug-09 12:17
memberDeyan Georgiev6-Aug-09 12:17 
AnswerRe: delphi book Pin
nortee14-Dec-10 0:59
membernortee14-Dec-10 0:59 
QuestionLoading XML data into TlistBox [modified] Pin
Member 413803928-Jul-09 8:53
memberMember 413803928-Jul-09 8:53 
AnswerRe: Loading XML data into TlistBox Pin
akirilov4-Sep-09 3:21
memberakirilov4-Sep-09 3:21 
QuestionDelphi = Pascal? Pin
ltp_Lonestar18-Jul-09 19:14
memberltp_Lonestar18-Jul-09 19:14 
AnswerRe: Delphi = Pascal? Pin
Blue_Boy19-Jul-09 2:09
memberBlue_Boy19-Jul-09 2:09 
AnswerRe: Delphi = Pascal? Pin
phannon8620-Jul-09 1:59
professionalphannon8620-Jul-09 1:59 
AnswerRe: Delphi = Pascal? Pin
Corinna John22-Jul-09 4:10
memberCorinna John22-Jul-09 4:10 
AnswerRe: Delphi = Pascal? Pin
Member 413803928-Jul-09 8:59
memberMember 413803928-Jul-09 8:59 
Questionmigration to C++ code Pin
MrKBA7-Jul-09 1:27
memberMrKBA7-Jul-09 1:27 
AnswerRe: migration to C++ code Pin
Corinna John22-Jul-09 4:13
memberCorinna John22-Jul-09 4:13 
hbez2-Jul-09 7:06
memberhbez2-Jul-09 7:06 
QuestionSorting of file Pin
thavasi30-Jun-09 22:45
memberthavasi30-Jun-09 22:45 
AnswerRe: Sorting of file Pin
Blue_Boy1-Jul-09 12:35
memberBlue_Boy1-Jul-09 12:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.