Line Feed and Carriage Return represented in Chr()

G

Guest

HI everybody,

I am writing a MDB function to write out (export) a dat file for a program that vendor provided.

Their program is running at dos prompt, and using the ANSI coding system, because it require my machine to add to config.sys :
DEVICE=C:\WINDOWS\COMMAND\ANSI.SYS

Let look at this:
?Chr(65)
A <-- represented by Chr(65)

after looking at their file spec. I want to raise a question:
If A = chr(65) then
Chr("?") = "Line Feed" <-- what is '?' "Line Feed" means a character (a code)
Chr("?") = "Carriage Return" < what is '?' "Carriage Return" means a character (a code)

Thanks & Regards!
 
D

Douglas J. Steele

LF = Chr(10), CR = Chr(13).

In Access, they MUST be Chr(13) & Chr(10), or you'll see unprintable
characters instead of skipping to a new line. VBA has an intinsic constant
vbCrLf that's the equivalent of this.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



myBasic said:
HI everybody,

I am writing a MDB function to write out (export) a dat file for a program that vendor provided.

Their program is running at dos prompt, and using the ANSI coding system,
because it require my machine to add to config.sys :
 
G

Guest

Thanks!


Douglas J. Steele said:
LF = Chr(10), CR = Chr(13).

In Access, they MUST be Chr(13) & Chr(10), or you'll see unprintable
characters instead of skipping to a new line. VBA has an intinsic constant
vbCrLf that's the equivalent of this.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)




because it require my machine to add to config.sys :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top