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

Home » Public Forums » archive » About keywords and positional parameters
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: About keywords and positional parameters [message #32818 is a reply to message #32720] Thu, 07 November 2002 08:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
lily_zhang (fengliza@sina.com) writes:

> Would you tell me how to distinguish the keywords and positional
> parameters in IDL procedures and functions?

Positional parameters are those variables that come
after the command name. They have a position after
the name (1, 2, 3, etc.). Keyword parameters also come
after the command name, but they have a KEYWORD=variable
(or sometimes a /KEYWORD, which means KEYWORD=1)
appearance. Keyword parameters can come in any order
and don't affect the count of positional parameters.

You can't tell from looking whether a positional or
keyword parameter is an input parameter or an output
parameter (or both). You have to read the documentation
to discover this.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Fit a circle ?
Next Topic: slicer3

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

Current Time: Fri Oct 10 21:21:14 PDT 2025

Total time taken to generate the page: 1.43901 seconds