Single Quotes, Double Quotes [message #11762] |
Thu, 14 May 1998 00:00 |
Charles Cavanaugh
Messages: 8 Registered: July 1997
|
Junior Member |
|
|
<HTML>
Can anyone please explain to me why the line
<P> <I>asciiutc = "1993-09-19T06:30:00.000000Z"</I><I></I>
<P>fails compilation with the error message
<P> <I>asciiutc = "1993-09-19T06:30:00.000000Z"</I>
<BR> <I>
^</I>
<BR> <I>% Syntax error.</I><I></I>
<P>but the same line, using single quotes instead of double
<BR>quotes, compiles.
<P>When I changed the "T" to a "0", compilation failed
<BR>again, but the syntax error pointer moved from the
<BR>first character after the "T" to the first character
<BR>after the ":".
<P>I first learned IDL back when 3.something was the
<BR>current version, and I learned that the single and
<BR>double quotes were pretty much interchangeable:
<BR>one was used for string constants and another for
<BR>string literals, whatever the difference is. Is this
<BR>difference being manifested in the problem noted
<BR>above?
<P>Thanks in advance,
<P>Charles Cavanaugh
<PRE>--
Charles Cavanaugh
MOPITT Program
National Center for Atmospheric Research
Boulder, CO, USA
email: cavanaug@ucar.edu
phone: (303) 497-2919
fax : (303) 497-2920</PRE>
</HTML>
|
|
|