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

Home » Public Forums » archive » Re: command line input
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: command line input [message #80916] Mon, 23 July 2012 14:42
Oana Coman is currently offline  Oana Coman
Messages: 27
Registered: December 2011
Junior Member
Yay thanks! Exactly what I wanted

On Monday, July 23, 2012 2:19:38 PM UTC-7, Mike Galloy wrote:
> On 7/23/12 2:46 PM, Kat wrote:
> > Hi guys,
> > Is there any way that, once inside of a procedure, to get input from the command line? If there is, what functions are available for doing this?
> > Thanks!
>
> Try the READ routine.
>
> IDL> line = ''
> IDL> read, line
> : Hello
> IDL> help, line
> LINE STRING = 'Hello'
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
> Research Mathematician
> Tech-X Corporation
Re: command line input [message #80918 is a reply to message #80916] Mon, 23 July 2012 14:19 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/23/12 2:46 PM, Kat wrote:
> Hi guys,
> Is there any way that, once inside of a procedure, to get input from the command line? If there is, what functions are available for doing this?
> Thanks!

Try the READ routine.

IDL> line = ''
IDL> read, line
: Hello
IDL> help, line
LINE STRING = 'Hello'

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: problems reading large files under 64-bit machine
Next Topic: Re: Using Widgets and Procedures

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

Current Time: Wed Oct 08 11:44:05 PDT 2025

Total time taken to generate the page: 0.00541 seconds