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

Home » Public Forums » archive » Re: Variable name to string
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
Re: Variable name to string [message #25779] Tue, 17 July 2001 15:10
meron is currently offline  meron
Messages: 51
Registered: July 1995
Member
In article <3B54A519.BBB64996@mail.astro.sunysb.edu>, Chad Bender <cbender@mail.astro.sunysb.edu> writes:
> 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.
>
Sure. Use EXECUTE.

Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Help me please in one test.
Next Topic: Re: widget-programming

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

Current Time: Wed Oct 08 19:17:50 PDT 2025

Total time taken to generate the page: 0.00577 seconds