comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » FORMAT question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
FORMAT question [message #65894] Fri, 27 March 2009 07:25
natha is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading or converting avi files
Next Topic: FORMAT question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:05:15 PDT 2025

Total time taken to generate the page: 0.00568 seconds