PureBytes Links
Trading Reference Links
|
Alas, I appreciate the sentiment, but believe me - I've tried the obvious.
I'm a professional programmer with 100,000's of lines of code under my
belt. None of the obvious escape sequences worked. EasyLanguage does have
a string constant called NewLine which equals "\r\n", but as far as I've
been able to tell, there is no comparable string constant for ascii decimal
34, the double-quote.
At this point I'm thinking I'll have to write a .DLL just to create a string
with a " in it. I could call it once at the beginning of my program and set
a variable to it. If anyone has ever solved this problem, I'm dieing to
hear how. By the sounds of it, I'm not the only one.
-Peter
----- Original Message -----
From: "Ted Howard" <yantis@xxxxxxxxxxxxxxx>
To: <code-list@xxxxxxxxxxxxx>; "'Omega List'" <omega-list@xxxxxxxxxx>
Sent: Friday, January 18, 2002 8:50 PM
Subject: RE: CL_EL Coding: How to write a double-quote character, ", to a
file
Common programming problem. The solution in most programming languages
is a magic prefix-character: '\'. So, to print the following line:
This is a "double quote" : "
I would use the following string:
"This is a \"double quote\" : \""
This magic character is used to insert many different characters that
seem impossible to insert (") or have no visual representation
(<Enter>). You get used to it eventually and no one's come up with a
good substitute system. If the above string works, then the following
should also work:
<Enter>(call a 'newline') : \n (sometimes \r\n)
<Tab> : \t
\ : \\
Ted
-----Original Message-----
From: Peter B. Nelson [mailto:peter@xxxxxxxxxxxxxxx]
Sent: Friday, January 18, 2002 12:35 PM
To: code-list@xxxxxxxxxxxxx; Omega List
Subject: CL_EL Coding: How to write a double-quote character, ", to a
file
Fellow EL Coders,
Does anyone know how to get a double-quote character, ", into a
string
using EasyLanguage? I need to write one into a file for Excel .CSV
parsing.
I looked for, and didn't find, an escape character, a char(34) funtion,
and
so on.
Any help is appreciated.
Regards,
Peter Nelson
The Code List -
Subscribe/Unsubscribe
http://www.markbrown.com/list
The Code List -
Subscribe/Unsubscribe
http://www.markbrown.com/list
|