| Re: Change in behavior of string constants? [message #1641] |
Wed, 05 January 1994 06:36  |
knipp
Messages: 68 Registered: January 1993
|
Member |
|
|
In article 6569@ll.mit.edu, ryba@ll.mit.edu (Marty Ryba) writes:
> We just updated to IDL Version 3.5.1 from 3.0, and this stopped working:
>
> tlab = string(flight, pass, desc, ihroll, $
> format = '("Flight ",i0," Pass ",i0," - ",a,", ",f5.1,"\xca Roll")')
> xyouts, 0.5, 0.93, tlab, /normal, alignment = 0.5, size = 1.5
>
> The \xca gave me the degree symbol with Helvetica Bold on a PostScript
> printer. With the new version, I get, literally, \xca in the string.
> I looked through the release notes, and there was no mention in changing the
> specification of octal or hexadecimal string constants. Help!
>
> --
> Dr. Marty Ryba | Generation X:
> MIT Lincoln Laboratory | Too young to be cynical,
Sorry, this is no solution to your problem, just a note.
We noticed the quite the same when updating from 3.0 :
With 3.0 we could use
PRINT,'\007' ; bell
PRINT,'\x08' ; move cursor to the left
Now we do the following:
PRINT, string(7b)
PRINT, string(8b)
Karl
____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de
|
|
|
|
| Re: Change in behavior of string constants? [message #1642 is a reply to message #1641] |
Wed, 05 January 1994 12:01  |
ryba
Messages: 33 Registered: October 1992
|
Member |
|
|
In article <2ges7f$3qf@canopus.cc.umanitoba.ca>, djackson@ibd.nrc.ca (Dick Jackson) writes:
|> With version 3.1, the backslash notation became obsolete, and you could
|> now use STRING(202B) instead of "\xca". It's true that there was no
|> change in the documentation, which for 3.1 still describes the
|> backslash notation.
|>
|> The explanation I got from RSI Tech Support was that, with the
|> inclusion of Windows support, the backslash is now commonly seen as the
|> directory delimiter in filenames, and the octal/hex notation had to go.
|> I welcome clarification if needed.
I got the same answer from Tech Support today...I certainly would have
appreciated a heads-up on this. I edited my string call and format
statement to read:
tlab = string(flight, pass, desc, ihroll, string(202b), $
format = '("Flight ",i0," Pass ",i0," - ",a,","' + $
',f5.1,a1," Roll")')
This works.
--
Dr. Marty Ryba | Generation X:
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy, and Laboratory affiliation is
for identification purposes only, blah, blah, blah....
|
|
|
|
| Re: Change in behavior of string constants? [message #1643 is a reply to message #1641] |
Wed, 05 January 1994 09:09  |
djackson
Messages: 31 Registered: June 1993
|
Member |
|
|
In article <1994Jan4.182859.6569@ll.mit.edu>
ryba@ll.mit.edu (Marty Ryba) writes:
> We just updated to IDL Version 3.5.1 from 3.0, and this stopped working:
>
> tlab = string(flight, pass, desc, ihroll, $
> format = '("Flight ",i0," Pass ",i0," - ",a,", ",f5.1,"\xca Roll")')
> xyouts, 0.5, 0.93, tlab, /normal, alignment = 0.5, size = 1.5
>
> The \xca gave me the degree symbol with Helvetica Bold on a PostScript
> printer. With the new version, I get, literally, \xca in the string.
> I looked through the release notes, and there was no mention in changing the
> specification of octal or hexadecimal string constants. Help!
In case we don't hear an official word from RSI, I'll offer what I
know:
With version 3.1, the backslash notation became obsolete, and you could
now use STRING(202B) instead of "\xca". It's true that there was no
change in the documentation, which for 3.1 still describes the
backslash notation.
The explanation I got from RSI Tech Support was that, with the
inclusion of Windows support, the backslash is now commonly seen as the
directory delimiter in filenames, and the octal/hex notation had to go.
I welcome clarification if needed.
-Dick
Dick Jackson djackson@ibd.nrc.ca Standard
disclaimer
Institute for Biodiagnostics, National Research Council Canada,
Winnipeg
Waitress:"We're out of hummous so I gave you extra babagonoush." Me:%^P
|
|
|
|