Re: Problem with READ procedure [message #39264] |
Thu, 29 April 2004 13:32 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Francois Leduc writes:
> I am using the READ procedure to get a variable value from the prompt.
>
> I use it 3 times in my code.
>
> The first time, it works, then on the second time, it does not work any
> more.
>
> ------------------------------------------------------------ ----
> The first time:
> rep = ' '
> READ, PROMPT='Number of classes to process: ', rep
> Nb_class = uint(rep)
>
> The second time:
> READ, rep, PROMPT='Shape:'
> shape = uint(rep)
> ------------------------------------------------------------ ----
>
> On the second time, the program keeps running without waiting for the user
> to enter a value.
>
> What is wrong ?
Are you *sure* this program doesn't work? Does it look
just like this in your *real* program? I think you have
tossed us a red herring, here. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
|
|
|