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

Home » Public Forums » archive » Re: A related question...
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: A related question... [message #21168] Thu, 10 August 2000 00:00
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Med Bennett wrote:
>
> Do you mean that there is no set limit on the number of parameters that
> can be passed to a procedure or function?
>

I think you should have a look to _EXTRA in the online help.
The usage of _EXTRA will solve a lot of your problems.

Reimar Bauer
Re: A related question... [message #21169 is a reply to message #21168] Wed, 09 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> P.S. Let's just say I've never figured out how to get
> that half parameter into my program for the 2.5 I'm
> allowed. :-(

I just counted the number of parameters I defined for
FSC_PSConfig__Define.

39

But I was so drunk that night I don't remember doing it. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: A related question... [message #21170 is a reply to message #21169] Wed, 09 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett (mbennett@indra.com) writes:

> Do you mean that there is no set limit on the number of parameters that
> can be passed to a procedure or function?

I think there might be a limit of about 64 parameters or so in earlier
versions of IDL, but I have to admit I've never pushed this
envelope. I'm a firm believer in having no more parameters
than I can drink beers in one setting. It's served me so
well over the years that I wouldn't think of violating it. :-)

Cheers,

David

P.S. Let's just say I've never figured out how to get
that half parameter into my program for the 2.5 I'm
allowed. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: A related question... [message #21171 is a reply to message #21169] Wed, 09 August 2000 00:00 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
Do you mean that there is no set limit on the number of parameters that
can be passed to a procedure or function?

David Fanning wrote:
>

>
> P.S. I'd put my money on programmer error rather
> than IDL restrictions, in this case. :-)
>
Re: A related question... [message #21172 is a reply to message #21169] Wed, 09 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett (mbennett@indra.com) writes:

> OK, I have tried rewriting my procedure to reduce the number of main level
> variables created by passing all of the variables it needs, rather than
> running it as a main level program. However, I now get the message
>
> '% Procedure/function called with too many parameters: XSPLOT.'
>
> I'm trying to give it 14 variables as parameters. What's a lousy programmer
> to do?

Common blocks. :-)

Cheers,

David

P.S. I'd put my money on programmer error rather
than IDL restrictions, in this case. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: page orientation
Next Topic: string to array conversion

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

Current Time: Fri Oct 10 08:03:26 PDT 2025

Total time taken to generate the page: 0.00795 seconds