1. Re: MLE newline

> Usually a newline character in DOS is ASCII 10 & ASCII 13;
> However in an MLE, Microsoft in all their wisdom decided to
> change it to ASCII 13 & ASCII 10.  Don't ask me why they did
> this, but that's what you need.  So to add it, say:
>
>   mleText = mleText & "Hello, world." & 13 & 10
>   setText(mleBox, mleText)
>
> Hope this helps.
>
> Michael J. Sabal
> mjs at osa.att.ne.jp
> http://home.att.ne.jp/gold/mjs/index.html
>
This is because ASCII 10 is linefeed & ASCII 13 is the carriage return it
takes both to return the line to the 0 position on the next line if you do
just a linefeed (ASCII 10) it will just move the cursor down a line it will
not return the cursor to position 0 this is why you need the carriage return
(ASCII 13) after.  If you do just a carriage return (ASCII 13) then it would
return you to the 0 position in the left margin on the same line.  Which you
can do but it would overwrite the line that you are on.  If you do a
linefeed (ASCII 10) after the carriage return this would move anything after
the carriage return down to the next line and not return to the beginning of
the line.  It's just like an old fashioned type writer or dot matrix line
printersmile  I'm aging myself with this onesmile

See Ya on the NET!
JKinsey

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu