Subj : Re: How do you replace a character in (a Richedit control) with a string To : borland.public.cpp.borlandcpp From : waking@idirect.com (Wayne A. King) Date : Tue Jul 01 2003 05:19 pm On 1 Jul 2003 08:35:43 -0700, "legacye" wrote: >Im using Borland c++ Builder 4.5 I'm not aware of a version 4.5 in C++ Builder. If it actually *is* Builder, then post your question in one of the groups with .cppbuilder. in the name. For your purposes a good place would be borland.public.cppbuilder.students This group is for issues with the Borland C/C++ compilers which preceded the Builder line, up to and including BC++ 5.02 (1997). If what you're using is actually Borland C++ 4.5 (4.51, 4.52) from circa 1994, then this is the right place. >I need to know how u replace a character in a string You say "a character" but your example is of replacing a sub-string. Which is it? If you're talking about a basic nul-terminated, C-style string, and not a "string" class, then look at STRREPL.C at this site: http://www.eti.pg.gda.pl/KATEDRY/kecs/lab-cpp/snippets/ -- Wayne A. King (ba994@torfree.net, wayne.king@ablelink.org, waking@idirect.com, Wayne_A_King@compuserve.com) .