Bruce H. Johnson
bhjohnson at verizon.net
Sat Dec 9 23:26:53 CST 2006
They are literally holdovers from the typewriter days when the carriage holding the paper moved back and forth in front of the keys. As you typed, it moved one space at a time from right to left (on Western typewriters). When you got to the end of a line (judge by eye), you had a big lever on the left side of the carriage which you'd push to the right. This moved the paper up one line (could be adjusted on most typewriters to 1, 1.5 or 2 lines) and pushed the carriage back to the left where the next line started. Especially earlier mainframe (were there any other kind?) printers copied the mechanism. A line feed -- chr$(10) -- moved the paper up one line. The next character to print would be one space to the right of the last one only one line below. The carriage return -- chr$(13) -- moved the head or print position to the left margin; just like the typewriter did. Most PC systems usually could care less what terminates the lines in a text/data file. By convention, it's both a line feed and carriage return. Visual Basic/VBA even have constants for them; vbCrLf and wdCrLf. Mainframes frequently use only one character as a line terminator. Depends on the flavor. HTH Bruce H. Johnson Sylmar, CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, December 09, 2006 3:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] difference between linefeed and carriage return I can't really tell the difference between a linefeed and a carriage return -- I'm sure there is one. Can someone explain the differences between them? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.15/581 - Release Date: 12/9/2006 3:41 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.15/581 - Release Date: 12/9/2006 3:41 PM