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

Home » Public Forums » archive » External Development: Number of arguments
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: External Development: Number of arguments [message #93431 is a reply to message #93426] Wed, 13 July 2016 12:04 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
On Tuesday, July 12, 2016 at 4:37:48 PM UTC-4, Haje Korth wrote:
> I am cooking on another DLM. I need to check for the number of parameters passed into the routine but need to distinguish between regular arguments and keywords. The argc argument gives me the total but I do not know how to subtract the keyword count. There must be a simpler way of checking every single keyword as to whether it is supplied or not. Help greatly appreciated.
>
> Thanks,
> Haje

Thank you for your replies. I had studied the IDL_KWProcessByOffset documentation and could not immediately retrieve the number of keyword using the function. I now simply add the nkw=sum(kw.there) flag, which are set to one if the keyword is set. Then I compute argc-nkw to get at the number of regular arguments.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: cfitsio library
Next Topic: extract (x,y) for every point of Curve in image

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

Current Time: Wed Oct 08 11:34:47 PDT 2025

Total time taken to generate the page: 0.00435 seconds