npar Example10 CLEAR SCREEN
20 PRINT "*** Optional parameter TEST ****"
30 Bigparams(1,2)
40 STOP !NPAR counts the # of parameters sent to a SUB.
50 END
60 SUB Bigparams(A,B, OPTIONAL C,D)
70 PRINT NPAR;"parameters sent to SUB"
80 SUBEND
|