HTBasic Help
×
Menu
Index

NPAR

Returns number of parameters passed to a subprogram.
 
 NPAR
 
Usage:
IF NPAR>5 THEN More
Global=NPAR-3
 
Example:           NPAR.BAS
 
Description:
NPAR is useful in subprograms with OPTIONAL parameters. NPAR can be used to determine which parameters were present in the calling argument list. An attempt to use a parameter which was not present results in an error. NPAR returns a zero in the main program.
 
See Also: