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

Home » Public Forums » archive » RE: passing string parameter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: passing string parameter [message #7216 is a reply to message #7211] Thu, 17 October 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
daytime visitor ssg login wrote:
>
> Hello, I want to write a small help procedure to display breif summaries
> of home made commands.
>
> IDL> helpme, command_name_string
>
> Is there a way to pass command_name_string to the procedure helpme
> without quotes?
>
> George McCabe, george@replica.gsfc.nasa.gov

if the command is for example, sortnames, I don't think
it's possible to pass it into a procedure as

IDL> helpme, sortnames

(as you'vbe obviously discovered! :)

You have to use

IDL> helpme, 'sortnames'

Or do it in two stages

IDL> sortnames='sortnames'
IDL> helpme, sortnames

You could use this second method by having a file that
initialises the helpme tool. This file could define
string variables containing the command names e.g.

;; list of commands
sortnames = 'sortnames'
printnames = 'printnames'
anothercommand = 'anothercommand'

and so on

Then when you start IDL, the user enters

IDL > @helpme_init

to define all the variables and thereafter he
can just use the helpme system as

IDL> helpme, printnames

and so on. Not elegant, but it should work ok.

Maybe somebody will come up with a better idea! Be interesting
to see

Tim

--

http://condor.lpl.arizona.edu/~tim/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: RE: colour-filling contours over maps
Next Topic: Here's a stupid question...

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

Current Time: Wed Oct 08 16:04:11 PDT 2025

Total time taken to generate the page: 0.00398 seconds