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

Home » Public Forums » archive » How to judge a Function's parameters ?
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
How to judge a Function's parameters ? [message #66273] Thu, 07 May 2009 14:51
Hu is currently offline  Hu
Messages: 35
Registered: January 2009
Member
Hi,folks,

I created a function 'RectArea' to calculate the rectangle area, and
two parameters, side a and b, are needed when the function is
employed.

I want to do something like this: if a and b are omitted by the user,
then the function will use the default values.

But, How can I judge that the parameters are omitted?

Thanks

function RectArea,a,b
return,a*b
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Strange array division problem
Next Topic: Re: How to judge a Function's parameters ?

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

Current Time: Wed Oct 08 17:33:05 PDT 2025

Total time taken to generate the page: 0.00618 seconds