|
IDL Reference Guide: Procedures and Functions |
|
The N_PARAMS function returns the number of parameters used in calling an IDL procedure or function. This function is only useful within IDL procedures or functions. User-written procedures and functions can use N_PARAMS to determine if they were called with optional parameters.
| Note In the case of object method procedures and functions, the SELF argument is not counted by N_PARAMS. |
Result = N_PARAMS()
Returns the number of non-keyword parameters.
None. This function always returns the number of parameters that were used in calling the procedure or function from which N_PARAMS is called.
None.
IDL Online Help (March 06, 2007)