Development Topics > BASIC Extensions > A-Shell Extensions > Dot Variables
ARGCNT

Reviewed December 2008

.ARGCNT holds the number of arguments for the last SBX or function or procedure. It also:

• retrieves the number of arguments passed to an SBX, without any need to ++INCLUDE ASHINC:XCALL.BSI previously.

• returns -1 if the current program was not called as an SBX.

• gets replaced by the next Function, Procedure or SBX call, so it should be tested immediately at the start of a routine, and the results saved if needed later in the routine.