xcall NUMCHK, string {,len, rc}
NUMCHK checks a string to see if it contains valid numeric characters only, and possibly that it is of a certain length.
Parameters
string (String) [in/out]
string to be searched. string is stripped of leading and trailing spaces and tabs and returned that way, regardless of whether valid.
len (Num) [in]
if specified, stripped string length must match.
rc (F6) [out]
optional return value specifying okay (0), or that string contains invalid characters or is not of len length (-1). Note that NUMCHK may be passed to the XFUNC function, in which case rc is not really relevant since the function itself returns the same value.
History
2006 August, A-Shell 4.9.963: Add rountine to A-Shell.