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

Home » Public Forums » archive » Re: How import data from prompt to a widget?
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: How import data from prompt to a widget? [message #69126] Mon, 14 December 2009 04:18
a.mozafari1211 is currently offline  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 Go to previous message
Spon is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How import data from prompt to a widget?
Next Topic: Store large array

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

Current Time: Wed Oct 08 15:49:24 PDT 2025

Total time taken to generate the page: 0.00609 seconds