FORMAT question [message #65894] |
Fri, 27 March 2009 07:25 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi folks,
I used to use the Embedded Formatting Commands to print strings with a
nice format, know I've a question.
I've the following float: 65465.45
And I want to represent it as a string in a IDLgrText object.
The result I want is something like this:
aa=OBJ_NEW('IDLgrText',STRING='6.5x10!U4',/ENABLE_FORMATTING )
XOBJVIEW, aa
My "problem" is that I don't know how to convert it as a string using
the FORMAT KEYWORD of the STRING FUNCTION.
I mean, I want to use a code like this:
f=65465.45
aa=OBJ_NEW('IDLgrText',STRING=STRING(f,FORMAT='xxxxxxx'),/
ENABLE_FORMATTING)
XOBJVIEW, aa
And I need the an expression 'xxxxxxxx' in order to obtain my result.
Any suggestions?
Is it possible ?
Thanks,
llo
|
|
|