Re: How import data from prompt to a widget? [message #69126] |
Mon, 14 December 2009 04:18 |
a.mozafari1211
Messages: 16 Registered: February 2009
|
Junior Member |
|
|
On 14 Dez., 03:51, Spon <christoph.b...@gmail.com> wrote:
> On Dec 14, 10:07 am, ali mozafari <a.mozafari1...@googlemail.com>
> wrote:
>
>> Folks
>> I need to import some data from prompt to a widget. Does anyone have
>> any idea how to do this? Something like this:
>> IDL> please enter the constant C1
>> IDL> please enter the constant C2
>> Any help highly appreciated
>> A.
>
> Well, you can either do it from the IDL command line with READ
> (without widgets), or with a textbox widget
>
> READ, C1, PROMPT = 'please enter the constant C1:'
>
> Note that this just assigns the value given at the prompt to the
> variable 'C1' in your function/procedure. No widgets involved.
>
> or, see:http://www.dfanning.com/programs/textbox.pro
>
> Regards,
> Chris
Thank you very much. This is exactly what I want.
Cheers
|
|
|
Re: How import data from prompt to a widget? [message #69127 is a reply to message #69126] |
Mon, 14 December 2009 03:51  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Dec 14, 10:07 am, ali mozafari <a.mozafari1...@googlemail.com>
wrote:
> Folks
> I need to import some data from prompt to a widget. Does anyone have
> any idea how to do this? Something like this:
> IDL> please enter the constant C1
> IDL> please enter the constant C2
> Any help highly appreciated
> A.
Well, you can either do it from the IDL command line with READ
(without widgets), or with a textbox widget
READ, C1, PROMPT = 'please enter the constant C1:'
Note that this just assigns the value given at the prompt to the
variable 'C1' in your function/procedure. No widgets involved.
or, see:
http://www.dfanning.com/programs/textbox.pro
Regards,
Chris
|
|
|