Re: String formatting nightmare [message #77127] |
Fri, 05 August 2011 01:54 |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Thu, 4 Aug 2011 18:57:37 -0700 (PDT), Balt <bindermuehle@gmail.com>
wrote:
> Hi all,
>
> I have this title text for a graph:
>
> STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, "deg Phase
> screen vel: ", F3.1, "m/s")', tcorner, phisat, vps)
>
> and I need to replace the "deg" characters with the degree symbol:
> STRING("232B)
>
> Is there any way to include that inside the STRING FORMAT argument or
> is the only way really to build the string in stages?
>
> Thanks!
>
> - Balt
title=STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0,
"'+STRING(176b)+' Phase screen vel: ", F3.1, "m/s")', tcorner, phisat,
vps)
|
|
|
Re: String formatting nightmare [message #77128 is a reply to message #77127] |
Thu, 04 August 2011 19:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Balt writes:
> I have this title text for a graph:
>
> STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, "deg Phase
> screen vel: ", F3.1, "m/s")', tcorner, phisat, vps)
>
> and I need to replace the "deg" characters with the degree symbol:
> STRING("232B)
>
> Is there any way to include that inside the STRING FORMAT argument or
> is the only way really to build the string in stages?
I don't understand your question, but this seems to work:
ss = STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, A0, "
Phase screen vel: ", F3.1, "m/s")', tcorner, phisat, String("232B), vps)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|