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

Home » Public Forums » archive » Variable name to string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Variable name to string [message #25780] Tue, 17 July 2001 13:50 Go to previous message
Chad Bender is currently offline  Chad Bender
Messages: 21
Registered: July 2001
Junior Member
Hello-

Can anyone please point me towards the solution of the following
problem?

Say I want to create a program that will write the contents of a named
array to a
file of the same name. This could be accomplished by having the program
prompt
the user for both the variable name (getting the array by reference) and
the file name
(getting the string naming the output file), and the user just puts the
same
thing twice. However, I would like to be able to do it so the user only
has one prompt.
The program asks what variable should be output, the user gives the
variable name,
and somehow the program is able to get a string with contents equivalent
to the variable
name for use in opening the output file.

Seems like it should be an easy problem, but for the life of me I can't
figure it out.

In case it matters, I'm running IDL 5.4 under RedHat Linux 6.2.

Thanks
Chad Bender
Dept of Physics and Astronomy
State University of New York @ Stony Brook
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: help with findfile
Next Topic: Re: Plotting a 3D Array In IDL

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

Current Time: Wed Oct 08 20:03:27 PDT 2025

Total time taken to generate the page: 0.00462 seconds