Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > idl format code...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5466 of 5937
Post > Topic >>

idl format codes and output files

by elwood <epolomsk@[EMAIL PROTECTED] > Feb 25, 2008 at 10:16 AM

Is there a way to use printf and a format code which takes as a
parameter a variable size
width that is calculated prior to calling printf.
Reason why: So that the output file will have pretty formatted
columns.


For example,
Suppose I have a program that prompts for a string.
The program doesnt know ahead of time how long the string will be.

Then I use strlen to find its length
len=strlen(word)

can I do something like the following:

printf,1,word,format='(alen)'
 




 4 Posts in Topic:
idl format codes and output files
elwood <epolomsk@[EMAI  2008-02-25 10:16:41 
Re: idl format codes and output files
Bob Crawford <Snowman4  2008-02-25 11:36:11 
Re: idl format codes and output files
Vince Hradil <hradilv@  2008-02-25 13:25:42 
Re: idl format codes and output files
Kenneth Bowman <k-bowm  2008-02-25 12:50:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:06:47 CDT 2008.