On Wed, 03 Mar 2004 10:09:13 -0800, eddie wang <ew***@kmg.com> wrote:
What is CRLF? Thanks.
And to expand yet some more:
CR is a return of the carriage to the first character position, if you
only did this each line would print over the top of the previous one.
LF is to feed the paper one line's height so the above doesn't happen.
But if you don't return the carriage to the home character then you
end up with stair-stpe text.
It's interpreted differently between DOS and UNIX systems as well, in
a DOS/Windows system a CR includes a LF, but Unix systems keep them
separate. You may run into this in some data files where the
DOS/Windows lack of a LF can screw up dipslays on some older Unix
systems (Virtually all current implementations got intelligent).
In ASP code, it's often used in a VbCrLf format, after a
Response.Write or other statement. Such as:
Response.Write "This is text" & VbCrLf
Response.Write "This is more text" & VbCrLf
This way, a View Source shows:
Response.Write "This is text"
Response.Write "This is more text"
Otherwise you'd see the code as:
Response.Write "This is text"Response.Write "This is more text"
Handy for readability and debugging, as is the use of the &_ to break
single-line statements over multiple lines in the code.
Jeff