Simple question: promptusertext method [message #58937] |
Wed, 27 February 2008 13:37  |
Selim.Ta
Messages: 2 Registered: February 2008
|
Junior Member |
|
|
I'm a novice in IDL, so please bear with me. I want a procedure to
display a prompt with a text field. From what I understand,
promptusertext is the method I should use. This said, I can't get it
to work properly. The prompt never displays and just registers the
user's entry as 0. Here's my code:
PRO ...
...
obj = Obj_New("IDLitIMessaging")
result = obj->promptusertext('...', answer, title='...')
...
END
What am I doing wrong?
|
|
|
Re: Simple question: promptusertext method [message #58977 is a reply to message #58937] |
Fri, 29 February 2008 13:30  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Wasit.Weather@gmail.com writes:
> Yes, I saved it in my hard drive, compiled and hit the run button. Is
> there any specific command to run it?
I wish they would just get rid of that *%@ run button!!
I hate to tell you this, but that good-for-nothing run
button only runs main-level programs and procedures that
take no arguments. That is to say, an *extremely*
small fraction of the IDL programs you plan to use. :-(
Try going to the IDL command line and typing this:
IDL> answer = TextBox()
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Simple question: promptusertext method [message #58978 is a reply to message #58937] |
Fri, 29 February 2008 13:19  |
Wasit.Weather
Messages: 62 Registered: February 2008
|
Member |
|
|
On Feb 29, 2:23 pm, David Fanning <n...@dfanning.com> wrote:
> Wasit.Weat...@gmail.com writes:
>> When I run the TextBox program, I stopped saying
>> Attempt to call undefined procedure/function: 'TEXTBOX'.
>> Execution halted at: $MAIN$
>
>> Did I miss something?
>
> What command did you type to run it?
> Did you put the file somewhere on your IDL path?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Yes, I saved it in my hard drive, compiled and hit the run button. Is
there any specific command to run it?
Thanks!
|
|
|
Re: Simple question: promptusertext method [message #58980 is a reply to message #58937] |
Fri, 29 February 2008 12:23  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Wasit.Weather@gmail.com writes:
> When I run the TextBox program, I stopped saying
> Attempt to call undefined procedure/function: 'TEXTBOX'.
> Execution halted at: $MAIN$
>
> Did I miss something?
What command did you type to run it?
Did you put the file somewhere on your IDL path?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|