Hello,
I'm middle advanced programmer of delphi & I'm using delphi 5. Ok my problem is: I'm looking for a simple and little procedure which should replace some words in TStrings varible. 4example if i have simple text:
" blabalallal test test [something] wee rf
ehjfgjfj [something] oejffj "
It should replece all [something] of an apropriate values...
I tried:
You see that [something] must be in new each line and it couldn't be join with another text.
I see complicated procedure. Help!
Give me some advice!
I'm middle advanced programmer of delphi & I'm using delphi 5. Ok my problem is: I'm looking for a simple and little procedure which should replace some words in TStrings varible. 4example if i have simple text:
" blabalallal test test [something] wee rf
ehjfgjfj [something] oejffj "
It should replece all [something] of an apropriate values...
I tried:
Code:
i := memo1.lines.count;
where : = 0;
repeat
begin
If memo1.lines[where] = '[something]' then
Memo1.lines[where] := 'An apropriate value';
end;
until where = i;
I see complicated procedure. Help!
Give me some advice!