1. win32lib mletext

I've got a sequence such as "Dear Kate, \n I'm writting to you..." that
when I put it in a mletext I got a strange character instead of a new
line.. so.. how can I make a new line inside a mletext?
Thanks a lot!

Red Knight

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

new topic     » topic index » view message » categorize

2. Re: win32lib mletext

On Mon, 27 Nov 2000 13:52:30 -0800, Caballero Rojo wrote:

>I've got a sequence such as "Dear Kate, \n I'm writting to you..." that
>when I put it in a mletext I got a strange character instead of a new
>line.. so.. how can I make a new line inside a mletext?
>Thanks a lot!
>
>Red Knight

You'll have to do the \r\n combo...  Try:

"Dear Kate,\r\n  I'm writing to you..."

Either one by itself will not do the job (and will give you the strange
character) but the combo does what you want.

-- Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: win32lib mletext

On Mon, 27 Nov 2000 13:52:30 -0800, Caballero Rojo
<pampeano at ROCKETMAIL.COM> wrote:

>I've got a sequence such as "Dear Kate, \n I'm writting to you..." that
>when I put it in a mletext I got a strange character instead of a new
>line.. so.. how can I make a new line inside a mletext?
>Thanks a lot!
>
>Red Knight
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Shopping - Thousands of Stores. Millions of Products.
>http://shopping.yahoo.com/

Instead of "\n" (LineFeed), you must use "\r\n" (CarriageReturn-LineFeed).
This is a DOS hangover. Do you (or anyone else) think that the library
should automatically convert single LF into CRLF? It would make life a bit
easier when reading text files with Euphoria and then sending the lines to
a MleText control.

----
cheers
Derek Parnell

new topic     » goto parent     » topic index » view message » categorize

4. Re: win32lib mletext

Thanks Derek and Brian, I think that one (\n or \r) should be enough but I
don't care that too much..
Thanks again!

Best Regards,
          Red Knight


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu