ST3VO
asked on
Search and Replace Characters in a memo
Hi experts!
I have a memo which contains '*' characters.
I need to search for those characters and replace them with a ',' character (comma)
Could you please help?
Thanks
ST3VO
I have a memo which contains '*' characters.
I need to search for those characters and replace them with a ',' character (comma)
Could you please help?
Thanks
ST3VO
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect Thanks!!!
You could do it like this
procedure ReplaceText( var M : TMemo; strOLD, strNEW: string);
begin
M := StringReplace(M.Lines.Text
end;
and call the function like
ReplaceText(Memo1,'*',',')
Regards,
Tomas Helgi