Advertisements

"Saber" <saber[--AT--]maghalat.com> wrote in message news:...
> I'm using a multiline textbox as a simple editro.
> I want to change all CRs in textbox with <BR>,
> Is there a way better than using For loops and replace CR with <BR> one by
> one?
>
>

Guest

On Fri, 30 Jul 2004 20:35:17 +0430, "Saber"
<saber[--AT--]maghalat.com> wrote:
>I'm using a multiline textbox as a simple editro.
>I want to change all CRs in textbox with <BR>,
>Is there a way better than using For loops and replace CR with <BR> one by
>one?
>

"Jos" <> wrote in message
news:uwL%239$...
> Saber wrote:
>> I'm using a multiline textbox as a simple editro.
>> I want to change all CRs in textbox with <BR>,
>> Is there a way better than using For loops and replace CR with <BR>
>> one by one?
>
> You didn't say which language you use.
>
> This is for VB:
> Dim Text2 As String = TextBox1.Text.Replace(vbCRLF,"<BR>")
>
> --
>
> Jos
>
>

Saber wrote:
> I'm using a multiline textbox as a simple editro.
> I want to change all CRs in textbox with <BR>,
> Is there a way better than using For loops and replace CR with <BR> one by
> one?
>
>
use the replace(textvar,IDCRs,"<br>")

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!