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

Home » Public Forums » archive » Simple question: promptusertext method
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
Simple question: promptusertext method [message #58937] Wed, 27 February 2008 13:37 Go to next message
Selim.Ta is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
Wasit.Weather is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Overlaying a contour on a small image
Next Topic: Re: Problem with Towler Camera Code

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

Current Time: Wed Oct 08 17:31:59 PDT 2025

Total time taken to generate the page: 0.00683 seconds